← Migration Guide Generator
Your token

Migration Guide Generator API

Reading your notes, checking them and writing the guide HTML, the CSS, the head tags with HowTo and FAQPage JSON-LD, Markdown and the mapping CSV all run free in the browser and need no API. The API is for the one metered step: send your migration steps, numbered, your reasons to switch and your intro, with what moves and what does not as context, and get back, as JSON, lines to reword (with a rewrite, or a split into one-action steps, built from that line's own words) and up to three headline ideas. The page checks every id, and refuses any rewrite or headline that adds a number, a name, a claim or a word your notes do 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": "refine".

taskWhat it doesReply
refinePoints out steps that do not start with what to do (not_action) or crowd three or more actions (two_actions), and lines with filler (vague), a jab at the other product (bashing) or a claim (needs_source), each with a rewrite from that line's own words, a split into 2 to 4 steps, or an empty text; offers up to 3 headlines.One JSON object

Input fields

All values are strings. task and steps are required.

FieldMeaning
task"refine"
fromThe product people are leaving, or "".
toYour product, or "".
headingYour current heading, or "".
timeYour time estimate, or "".
introYour intro sentence, or "". Its id is intro.
stepsJSON text: [{id, text}] in order, ids s1, s2 ... At most 30.
whyJSON text: [{id, text}], your reasons to switch, ids w1, w2 ..., or [].
movesJSON text: [{from, to, note}], what transfers. Context only.
staysJSON text: [{what, note}], what does not transfer. Context only.
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 two keys: flag, a list of {id, why, text} where why is not_action, two_actions, vague, bashing or needs_source and text is a rewrite, a split (the new steps separated by | ) or ""; and headlines, up to 3 strings. Before using it, check every id and that a rewrite adds no number, name, claim or new word; 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 suggestion that arrived whole.

Worked example

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

{
  "task": "refine",
  "from": "Boardly",
  "to": "Taskly",
  "heading": "",
  "time": "About 10 minutes for most workspaces",
  "intro": "",
  "steps": "[{\"id\":\"s1\",\"text\":\"In Boardly, open the board menu and choose Export as JSON.\"},{\"id\":\"s2\",\"text\":\"Sign in to Taskly and go to Settings > Import > Boardly.\"},{\"id\":\"s3\",\"text\":\"Upload the JSON file. Pick the team that should own the project, then press Start import and wait for the email.\"},{\"id\":\"s4\",\"text\":\"Map each Boardly list to a Taskly stage.\"},{\"id\":\"s5\",\"text\":\"Invite your team from the project page.\"}]",
  "why": "[{\"id\":\"w1\",\"text\":\"Every board gets a timeline view without a paid add-on.\"},{\"id\":\"w2\",\"text\":\"Boardly gets clunky past 20 boards; Taskly stays quick.\"}]",
  "moves": "[{\"from\":\"Boards\",\"to\":\"Projects\",\"note\":\"\"},{\"from\":\"Lists\",\"to\":\"Stages\",\"note\":\"\"},{\"from\":\"Cards\",\"to\":\"Tasks\",\"note\":\"with due dates, members and comments\"},{\"from\":\"Labels\",\"to\":\"Tags\",\"note\":\"\"},{\"from\":\"Checklists\",\"to\":\"Subtasks\",\"note\":\"\"},{\"from\":\"Attachments\",\"to\":\"Files\",\"note\":\"up to 25 MB each\"}]",
  "stays": "[{\"what\":\"Power-Ups\",\"note\":\"turn on the matching Taskly app after the import\"},{\"what\":\"Automation rules\",\"note\":\"rebuild them under Taskly Rules\"},{\"what\":\"Card history\",\"note\":\"Taskly starts a fresh activity log\"}]",
  "items_note": ""
}

Reply:

{"flag":[{"id":"s3","why":"two_actions","text":"Upload the JSON file. | Choose the team that should own the project. | Press Start import and wait for the email."},{"id":"w2","why":"bashing","text":""}],"headlines":["Move from Boardly to Taskly in about 10 minutes","Move your boards from Boardly to Taskly"]}

On the page, step 3 becomes three steps (upload the file, choose the team, press Start import and wait for the email), the reason that calls Boardly clunky is pointed out with no rewrite because it has no fact behind the jab, 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://migration-guide-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":"migration-guide-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": "refine", "from": "Boardly", "to": "Taskly", "heading": "", "time": "About 10 minutes", "intro": "", "steps": "[...]", "why": "[]", "moves": "[]", "stays": "[]", "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="migration-guide-generator:refine:$(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: 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: migration-guide-generator:refine:$(shasum -a 256 input.json | cut -c1-16):a1" --data @input.json