← Features Page Generator
Your token

Features Page Generator API

Reading your list, checking it and writing the features HTML, the CSS, the head tags with JSON-LD, Markdown and CSV all run free in the browser and need no API. The API is for the one metered step: send your features, numbered, with their group, description, plan and status, plus a list of groups to choose from, and get back, as JSON, a group for each feature that has none, the features to highlight, descriptions to reword with an optional benefit-first rewrite of each, and up to three headline ideas. The page checks every id, and refuses any rewrite or headline that adds a number, a name or a claim your list does not contain.

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": "sort".

taskWhat it doesReply
sortPuts each feature with no group into one of the groups sent (your own first), picks 3 to 6 to highlight when none are marked, points out descriptions to reword (not_benefit, vague, use_case, needs_source, jargon) with a rewrite from that feature's own words or an empty one, and offers up to 3 headlines.One JSON object

Input fields

All values are strings. task and features are required.

FieldMeaning
task"sort"
productYour product's name, or "".
headingYour current heading, or "".
featuresJSON text: [{id, name, category, desc, plan, status, highlight}] in list order, ids like f4. category, desc and plan may be ""; status is live, new, beta or soon; highlight is true when you already marked it. At most 120.
categoriesJSON text: [{id, name, yours}]. Your own groups as c1, c2 ... with yours: true, then standard ones as s1, s2 ... with yours: false.
items_noteEmpty, or a sentence saying what was cut.

The reply

job.output.output is text holding one JSON object (sometimes inside a ```json fence) with four keys: assign, a list of {id, category} for features that had no group; highlight, a list of feature ids, empty when you already marked some; flag, a list of {id, why, text} where why is not_benefit, vague, use_case, needs_source or jargon and text is a suggested rewrite or ""; and headlines, up to 3 strings. Before using it, check every id, that no grouped feature is regrouped, that no coming-soon feature is highlighted, and that a rewrite adds no number, name or claim; the page does all of this and lists what it refused. If the balance ran low, truncated is true and the object may stop early; the page keeps every choice that arrived whole.

Worked example

Input (input.json), the spreadsheet sample on the page:

{
  "task": "sort",
  "product": "Shiftwise",
  "heading": "",
  "features": "[{\"id\":\"f1\",\"name\":\"Drag-and-drop rota\",\"category\":\"Scheduling\",\"desc\":\"Build next week's rota in about 10 minutes by dragging shifts onto people.\",\"plan\":\"All plans\",\"status\":\"live\",\"highlight\":true},{\"id\":\"f2\",\"name\":\"Shift templates\",\"category\":\"Scheduling\",\"desc\":\"Save a typical week and reuse it, so a new rota starts most of the way done.\",\"plan\":\"All plans\",\"status\":\"live\",\"highlight\":false},{\"id\":\"f3\",\"name\":\"Availability\",\"category\":\"Scheduling\",\"desc\":\"Staff mark the days they can't work, and you see it before you assign anyone.\",\"plan\":\"All plans\",\"status\":\"live\",\"highlight\":true},{\"id\":\"f4\",\"name\":\"Shift swaps\",\"category\":\"Team\",\"desc\":\"When you need to cover a sick shift at 6am, imagine staff swapping it between themselves and you just approve it.\",\"plan\":\"Pro\",\"status\":\"live\",\"highlight\":false},{\"id\":\"f5\",\"name\":\"Team chat\",\"category\":\"Team\",\"desc\":\"Powerful, seamless messaging for your whole team.\",\"plan\":\"Pro\",\"status\":\"live\",\"highlight\":false},{\"id\":\"f6\",\"name\":\"Time clock\",\"category\":\"Time and pay\",\"desc\":\"Staff clock in on their phone and the hours land on the timesheet.\",\"plan\":\"Pro\",\"status\":\"live\",\"highlight\":true},{\"id\":\"f7\",\"name\":\"Timesheets\",\"category\":\"Time and pay\",\"desc\":\"Automated timesheets\",\"plan\":\"Pro\",\"status\":\"live\",\"highlight\":false},{\"id\":\"f8\",\"name\":\"Labour cost forecast\",\"category\":\"Reporting\",\"desc\":\"See the wage cost of a rota before you publish it, next to your sales target.\",\"plan\":\"Business\",\"status\":\"beta\",\"highlight\":false},{\"id\":\"f9\",\"name\":\"Automated reporting\",\"category\":\"Reporting\",\"desc\":\"Automated reporting\",\"plan\":\"Business\",\"status\":\"live\",\"highlight\":false},{\"id\":\"f10\",\"name\":\"Payroll export\",\"category\":\"\",\"desc\":\"Send approved hours to Xero, QuickBooks or Gusto in one click.\",\"plan\":\"Pro\",\"status\":\"live\",\"highlight\":false},{\"id\":\"f11\",\"name\":\"Overtime alerts\",\"category\":\"\",\"desc\":\"The best overtime protection on the market.\",\"plan\":\"Pro\",\"status\":\"live\",\"highlight\":false},{\"id\":\"f12\",\"name\":\"Mobile app\",\"category\":\"\",\"desc\":\"iOS and Android app.\",\"plan\":\"All plans\",\"status\":\"live\",\"highlight\":false},{\"id\":\"f13\",\"name\":\"Multi-location\",\"category\":\"\",\"desc\":\"\",\"plan\":\"Business\",\"status\":\"soon\",\"highlight\":false},{\"id\":\"f14\",\"name\":\"Auto-scheduling\",\"category\":\"Scheduling\",\"desc\":\"\",\"plan\":\"Business\",\"status\":\"soon\",\"highlight\":false}]",
  "categories": "[{\"id\":\"c1\",\"name\":\"Scheduling\",\"yours\":true},{\"id\":\"c2\",\"name\":\"Team\",\"yours\":true},{\"id\":\"c3\",\"name\":\"Time and pay\",\"yours\":true},{\"id\":\"c4\",\"name\":\"Reporting\",\"yours\":true},{\"id\":\"s1\",\"name\":\"Scheduling and planning\",\"yours\":false},{\"id\":\"s2\",\"name\":\"Collaboration\",\"yours\":false},{\"id\":\"s3\",\"name\":\"Communication\",\"yours\":false},{\"id\":\"s4\",\"name\":\"Reporting and analytics\",\"yours\":false},{\"id\":\"s5\",\"name\":\"Automation\",\"yours\":false},{\"id\":\"s6\",\"name\":\"Integrations\",\"yours\":false},{\"id\":\"s7\",\"name\":\"Payments and billing\",\"yours\":false},{\"id\":\"s8\",\"name\":\"Content and editing\",\"yours\":false},{\"id\":\"s9\",\"name\":\"Templates\",\"yours\":false},{\"id\":\"s10\",\"name\":\"Publishing\",\"yours\":false},{\"id\":\"s11\",\"name\":\"Search and organisation\",\"yours\":false},{\"id\":\"s12\",\"name\":\"Data import and export\",\"yours\":false},{\"id\":\"s13\",\"name\":\"Customisation\",\"yours\":false},{\"id\":\"s14\",\"name\":\"Mobile\",\"yours\":false},{\"id\":\"s15\",\"name\":\"Notifications\",\"yours\":false},{\"id\":\"s16\",\"name\":\"Security and privacy\",\"yours\":false},{\"id\":\"s17\",\"name\":\"Admin and permissions\",\"yours\":false},{\"id\":\"s18\",\"name\":\"Support\",\"yours\":false},{\"id\":\"s19\",\"name\":\"Time tracking\",\"yours\":false},{\"id\":\"s20\",\"name\":\"Invoicing\",\"yours\":false},{\"id\":\"s21\",\"name\":\"Accounting\",\"yours\":false},{\"id\":\"s22\",\"name\":\"Banking\",\"yours\":false},{\"id\":\"s23\",\"name\":\"Tax\",\"yours\":false}]",
  "items_note": ""
}

Reply:

{
  "assign": [
    {"id": "f10", "category": "c3"},
    {"id": "f11", "category": "c3"}
  ],
  "highlight": [],
  "flag": [
    {"id": "f4", "why": "use_case", "text": "Let staff swap shifts between themselves, and you just approve the swap."},
    {"id": "f5", "why": "vague", "text": "Message your whole team."},
    {"id": "f7", "why": "not_benefit", "text": "Get your timesheets done automatically."},
    {"id": "f9", "why": "not_benefit", "text": "Get your reports built for you automatically."},
    {"id": "f11", "why": "needs_source", "text": "You get alerts about overtime."},
    {"id": "f12", "why": "not_benefit", "text": "Use Shiftwise on iOS and Android."}
  ],
  "headlines": ["Build your rota and track hours in Shiftwise", "Everything you need to build rotas and track hours"]
}

On the page, Payroll export and Overtime alerts move under Time and pay, five descriptions are rewritten (“Automated timesheets” becomes “Get your timesheets done automatically.”), your own three highlights stay, and the two headlines are offered as buttons.

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://features-page-generator.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":"features-page-generator"}' | 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": "sort", "product": "Shiftwise", "heading": "", "features": "[...]", "categories": "[...]", "items_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="features-page-generator:sort:$(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: assign, highlight, flag, headlines
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: features-page-generator:sort:$(shasum -a 256 input.json | cut -c1-16):a1" --data @input.json