← Funnel Builder Cost
Your token

Funnel Builder Cost API

The comparison itself - every cost line, the crossovers, the scores and what flips the pick - runs free in the browser and needs no API. The API is for the one metered step: send the finished comparison and get back, as JSON, which option to choose, what it gives up, the checks to make and the questions to ask each vendor. The page builds the input for you; download the comparison as .json there to see every figure.

Base URL: https://api.skillsafe.ai/v1/app-api. Every response is {"data": ...} or {"error": {"code", "message"}}; read error.code and error.message rather than the HTTP status alone.

The task field

This app has one task. Always send "task": "recommend".

taskWhat it doesReply
recommendPicks one option for the case from the figures sent, names what it gives up, the runner-up and when it wins, checks to make before signing up (open-source licence checks when a self-hosted option is compared), questions for each vendor, costs that are easy to leave out and what would change the answer.One JSON object

Input fields

Every field is a string; the structured ones hold JSON text.

FieldMeaning
task"recommend"
caseJSON: monthly_sales, contacts, funnels_or_sites, months, hourly_rate, currency, store (none, shopify, woo, other), technical_help (none, some, dev), exit_tolerance.
optionsJSON list, one per option: id, name, kind, what, prices, scores_1_5, monthly_lines, running_per_month, setup_once, per_month_with_setup, over_months, cost_to_leave, score_0_100, rank, ruled_out.
weightsJSON: 0-10 for cost, exit, data, upkeep, speed.
factsJSON: best_fit, cheapest, runner_up, margin_points, crossovers, what_flips, notes.
notesFree text about the business, up to 1,200 characters (cut at a sentence end).
clipped_noteEmpty, or a sentence saying the notes were cut.

The reply

job.output.output is text holding one JSON object: pick (an option id), headline, why, give_up, runner_up ({id, when}), check_before, ask_vendors ([{option, question}]), hidden_costs and flip. Check that pick is an id you sent and not ruled out, and that every money figure matches one you computed; the page does both and lists anything it cannot trace. If the balance ran low, truncated is true and the object may stop early; the page keeps every section that arrived whole.

Worked example

Input (input.json, the long JSON strings shortened here):

{
  "task": "recommend",
  "case": "{\"monthly_sales\":4000,\"contacts\":2500,\"funnels_or_sites\":2,\"months\":24,\"hourly_rate\":50,\"currency\":\"$\",\"store\":\"none\",\"technical_help\":\"some\",\"exit_tolerance\":\"could survive a 30-day outage\"}",
  "options": "[{\"id\":\"flat\",\"name\":\"Flat-fee hosted builder\",\"kind\":\"hosted\",\"what\":\"An all-in-one hosted builder on a flat monthly plan.\",\"prices\":{\"fee\":197,\"pct\":0,\"inclContacts\":10000,\"perK\":10,\"inclFunnels\":20,\"perFunnel\":0,\"lice...",
  "weights": "{\"cost\":8,\"exit\":4,\"data\":3,\"upkeep\":5,\"speed\":3}",
  "facts": "{\"best_fit\":\"pct\",\"cheapest\":\"pct\",\"runner_up\":\"wp\",\"margin_points\":3,\"crossovers\":[{\"at_monthly_sales\":4170.83,\"cheaper_below\":\"pct\",\"cheaper_above\":\"wp\"},{\"at_monthly_sales\":7400,\"cheaper_below\":\"pct\",\"cheaper_above\":\"...",
  "notes": "I sell one $500 course and a $97 add-on. I want to launch next month and I am not a developer, but my partner can handle WordPress basics.",
  "clipped_note": ""
}

Reply:

{
  "pick": "pct",
  "headline": "Choose the percentage-of-sales plan: it runs about $179 a month all in, the lowest of your options, at $4,000 a month in sales.",
  "why": [
    "Over 24 months it totals $4,596, the lowest of the options you can use. The WordPress plugin is next at $4,678.",
    "The cut of sales is only $80 a month at $4,000 in sales, on top of a $49 base fee, so you pay little while the course is young.",
    "Your 2,500 contacts and 2 funnels sit inside what the plan includes (5,000 contacts, 5 funnels), so no extra charges apply today.",
    "You want to launch next month and you are not a developer. A hosted builder is the fastest start, with about 6 hours of setup against 10 for WordPress."
  ],
  "give_up": [
    "Cost grows with your sales and has no ceiling. Every extra sale pays the vendor a cut.",
    "Your pages stop when payment stops, and you reach your data only on their terms.",
    "You cannot patch gaps in the builder yourself. If a feature is missing, you wait or work around it.",
    "Leaving is a real job: about $1,500 of your time to rebuild elsewhere, against $600 for the WordPress plugin."
  ],
  "runner_up": {
    "id": "wp",
    "when": "Take the WordPress plugin if monthly sales stay above about $4,171, where it becomes the cheaper option, or if owning your data and leaving easily matter more than a fast start. Your partner's WordPress basics would cover its upkeep."
  },
  "check_before": [
    "Ask how the cut of sales is counted, for example on the course and the $97 add-on, and whether refunds give the cut back.",
    "Export test: confirm you can download your contacts and page content before you commit, since leaving is priced at $1,500.",
    "If you consider the self-hosted open source option, check the licence is OSI-approved rather than source-available, the repository holds the real product with tagged releases, and it can take payments without a paid key.",
    "Work out your real monthly sales for the next 12 months. You are close to the $4,171 crossover, so a small rise changes the answer."
  ],
  "ask_vendors": [
    {
      "option": "pct",
      "question": "At what monthly sales does the cut of sales make this plan cost more than a flat-fee plan, and is there any cap on the cut?"
    },
    {
      "option": "pct",
      "question": "If I cancel, what happens to my pages, contacts and customer records, and how do I export them?"
    },
    {
      "option": "wp",
      "question": "Does the licence cover renewals and updates for the full 24 months, and what happens to the plugin if I do not renew?"
    },
    {
      "option": "wp",
      "question": "Does the plugin send email itself, or do I pay a separate sender as my list grows past 2,500 contacts?"
    }
  ],
  "hidden_costs": [
    "Your own time: the upkeep line is $50 a month on this plan, and setup is a one-time $300.",
    "Migration labour when you leave: $1,500 on this plan, $600 on the WordPress plugin.",
    "Growing contacts: past 5,000 contacts this plan bills extra, and the plugin becomes cheapest once the list passes about 5,845.",
    "Card processing fees are the same on every option, so leave them out of the comparison."
  ],
  "flip": [
    "If monthly sales pass about $4,171, the WordPress plugin becomes the cheapest option.",
    "Past about $4,807 in monthly sales, the WordPress plugin becomes the best fit overall.",
    "If you value leaving easily or owning your data more than you do now, the WordPress plugin wins, since it scores higher on both."
  ]
}

Errors

HTTPWhat to do
401The token is missing, expired or a guest token on a run. Get a personal token on the token page.
402The balance is below what the run reserves. Top up at skillsafe.ai/account/billing.
400The body is not a JSON object of the fields above.
429Wait and retry with the same Idempotency-Key.

Step 1 — a tiny client helper

One function that sends JSON and unwraps the {data, error} envelope.

BASE="https://api.skillsafe.ai/v1/app-api"
TOKEN="paste-your-token-here"   # from https://funnel-builder-cost.skillsafe.ai/tokens.html
api() { # api METHOD PATH [JSON-BODY]
  curl -s -X "$1" "$BASE$2" -H "Content-Type: application/json" \
    ${TOKEN:+-H "Authorization: Bearer $TOKEN"} ${3:+--data "$3"}
}

Step 2 — a token

A guest token is enough for /me and /estimate. A run is metered, so it needs your personal token: sign in on the token page and copy it.

# a guest token (enough for /me and /estimate); a run needs your personal token from /tokens.html
TOKEN=$(curl -s -X POST "$BASE/guest" -H "Content-Type: application/json" -d '{"slug":"funnel-builder-cost"}' | jq -r '.data.token')

Step 3 — who am I, and my balance

subject_type is guest or user; credits is the balance (1 credit = $0.0001).

api GET /me | jq '.data | {subject_type, credits}' 

Step 4 — price a run for free

/estimate charges nothing and starts no job. hold_credits is the amount reserved while a run is in flight, not the price; the run is charged what it uses.

# input.json: the run input object - {"task": "recommend", "case": "{...}", "options": "[...]", "weights": "{...}", "facts": "{...}", "notes": "", "clipped_note": ""}
api POST /estimate "$(cat input.json)" | jq '.data | {hold_credits, min_credits, model, model_alias, markup_bps, warnings}' 

Step 5 — run it and wait for the job

Send an Idempotency-Key derived from the input: a retry with the same key is never billed twice.

KEY="funnel-builder-cost:recommend:$(shasum -a 256 input.json | cut -c1-16):a1"
JOB=$(curl -s -X POST "$BASE/run" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: $KEY" --data @input.json | jq -r '.data.job_id')
while :; do
  J=$(api GET "/jobs/$JOB"); S=$(echo "$J" | jq -r '.data.status')
  case "$S" in succeeded|failed|cancelled) break;; esac; sleep 2
done
echo "$J" | jq -r '.data.output.output' > reply.json   # one JSON object: pick, headline, why, ...
echo "$J" | jq '.data | {charged_credits, truncated}' 

Step 6 — or stream it

/run-stream sends Server-Sent Events while the job runs and the finished job at the end.

# Server-Sent Events: tick/delta events while the job runs, then a final event with the job
curl -N -s -X POST "$BASE/run-stream" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: funnel-builder-cost:recommend:$(shasum -a 256 input.json | cut -c1-16):a1" --data @input.json