← Changelog Page Generator
Your token

Changelog Page Generator API

Reading your CHANGELOG.md or release notes, labelling every change, checking it and writing the changelog page, its CSS, the head tags, the Atom feed, CHANGELOG.md, JSON and the checklist all run free in the browser and need no API. The API is for the one metered step: send the product name, the headline and intro, the releases and their changes with what the check found, and get back, as JSON, a clearer headline and intro, a title for untitled releases, plain lines for changes written as commit messages or as "we added", a title tag, a meta description and up to three tips. The page checks every line and refuses one that adds a number, a version, a name, code or a promise the changelog does not have, or puts back a pull request number, commit hash, ticket number or @mention; do the same if you call the API yourself.

Base URL: https://api.skillsafe.ai/v1/app-api. Every response is an envelope {"data": ..., "error": null} or {"data": null, "error": {"code", "message"}}.

The task field

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

taskWhat it doesReply
refineWrites a headline, an intro, titles for untitled releases, plain lines for commit-style or "we added" changes, a title tag, a meta description and up to three tips for a public changelog page, from the fields you send.One JSON object

Input fields

All values are strings. task is required; send "" for anything you do not have.

FieldMeaning
task"refine"
productThe product's name, or "".
audienceWho uses it, or "".
headlineThe page's current headline, or "".
introThe sentence under the headline, or "". Past 400 characters it keeps both ends with [...] between.
releasesOne per line, newest first, as id | version | title | summary | flags (flags: no date, dated after today); the version is unreleased for work not shipped, or empty for a release known by its date.
entriesOne change per line as id | release id | type | text | flags; type is new, improved, fixed, security, deprecated, removed, breaking or other; flags are what the check found (vague, we voice, commit style, internal, long, promise wording). References, ticket numbers and links are taken out first. The page sends at most 40 changes, newest releases first.
problemsCheck codes separated by , (for example date.missing, entries.vague, entries.voice), or "".
entries_noteEmpty, or a sentence saying what was left out of a long changelog.

The reply

job.output.output is text holding one JSON object (sometimes inside a ```json fence) with seven keys: headline, intro, title_tag and meta_description as strings ("" means "keep what you have"), titles, an object from release id to a short title, entries, an object from change id to one line, and tips, a list of strings. Before using it, check the lengths (headline 10 to 70 characters and twelve words, intro 40 to 240, titles 6 to 70 and ten words, change lines 15 to 180, title tag 25 to 60 with the product name, meta description 70 to 160, at most three tips of 20 to 160), that every id is one you sent, that titles go only to releases without one, and that no line adds a number, version, name or code your input does not have, or puts back a reference.

Worked examples

The three samples on the page, each with the exact input the page sends and a model reply.

An app's typed updates (Pinecart)

Input:

{
  "task": "refine",
  "product": "Pinecart",
  "audience": "",
  "headline": "What's new in Pinecart",
  "intro": "Pinecart is an online shop builder for small makers. Every change we ship lands here.",
  "releases": "v3-8 | 3.8 | Gift cards |  | \nv3-7 | 3.7 |  |  | \nv3-6 | 3.6 | Shipping labels |  | \nv3-5 | 3.5 |  |  | \nv3-4 | 3.4 | Dark mode for the dashboard |  | ",
  "entries": "e1 | v3-8 | new | Sell gift cards in any amount and let customers pay with them at checkout | \ne2 | v3-8 | new | Customers can check a gift card's balance from the order page | \ne3 | v3-8 | improved | Product photos load faster on phones | \ne4 | v3-8 | fixed | Discount codes with lowercase letters were rejected at checkout | \ne5 | v3-7 | new | We added bulk editing for product prices | we voice\ne6 | v3-7 | improved | The orders list remembers your filters | \ne7 | v3-7 | fixed | Bug fixes | vague\ne9 | v3-6 | new | Print shipping labels for domestic orders straight from an order | \ne10 | v3-6 | improved | Minor improvements | vague\ne11 | v3-6 | fixed | Tax was added twice on orders with a shipping discount | \ne12 | v3-5 | new | Abandoned cart emails, sent an hour after a shopper leaves | \ne14 | v3-4 | new | A dark theme for the dashboard | \ne15 | v3-4 | fixed | Exported order CSVs now keep leading zeros in postcodes | ",
  "problems": "entries.vague, entries.voice",
  "entries_note": ""
}

Reply:

{
  "headline": "",
  "intro": "Pinecart is an online shop builder for small makers. Every release is listed here, newest first, with what is new, what got better and what was fixed.",
  "titles": {
    "v3-7": "Bulk price editing and remembered order filters",
    "v3-5": "Abandoned cart emails"
  },
  "entries": {
    "e5": "You can now edit the prices of many products at once."
  },
  "title_tag": "Pinecart changelog: new features and fixes",
  "meta_description": "Every Pinecart release, newest first: what is new, what got better and what was fixed. Subscribe to the feed for updates.",
  "tips": [
    "Replace \"Bug fixes\" in 3.7 with what was fixed, or drop the line.",
    "Replace \"Minor improvements\" in 3.6 with what got better, or drop the line."
  ]
}

On the page, the intro changes, the two untitled releases get a title, the we added line is rewritten, the title tag and meta description are replaced, and the tips join the check.

A CHANGELOG.md (Tidewater)

Input:

{
  "task": "refine",
  "product": "Tidewater",
  "audience": "",
  "headline": "",
  "intro": "All notable changes to Tidewater, a date parsing library, are listed here.",
  "releases": "v2-3-0 | 2.3.0 |  |  | \nv2-2-1 | 2.2.1 |  |  | \nv2-2-0 | 2.2.0 |  |  | no date\nv2-1-0 | 2.1.0 |  |  | \nv2-0-0 | 2.0.0 |  |  | ",
  "entries": "e2 | v2-3-0 | new | Week numbers in `format()` with the `W` token | \ne3 | v2-3-0 | new | Parsing of dates written as \"3rd of March 2026\" | \ne4 | v2-3-0 | fixed | `addMonths()` no longer skips to March when you add one month to January 31 | \ne5 | v2-2-1 | security | Fixed a regular expression in the duration parser that could hang on very long inputs | \ne6 | v2-2-0 | improved | `parse()` now treats two-digit years as 2000-2099 | \ne7 | v2-2-0 | improved | Various improvements | vague\ne8 | v2-2-0 | deprecated | `parseLoose()`; use `parse()` with `{ strict: false }` instead | \ne9 | v2-1-0 | new | Time zone names in `format()` output | \ne10 | v2-1-0 | removed | Node 16 support | \ne11 | v2-0-0 | breaking | `parse()` returns `null` instead of throwing on invalid input | ",
  "problems": "date.missing, entries.vague, breaking.present",
  "entries_note": ""
}

Reply:

{
  "headline": "What's new in Tidewater",
  "intro": "Tidewater is a date parsing library. Every release is listed here, newest first, with what is new, what got better and what was fixed.",
  "titles": {
    "v2-3-0": "Week numbers in format() and \"3rd of March\" date parsing",
    "v2-2-1": "Duration parser fix for very long inputs",
    "v2-2-0": "Two-digit years in parse() and parseLoose() deprecated",
    "v2-1-0": "Time zone names in format() output",
    "v2-0-0": "parse() returns null instead of throwing"
  },
  "entries": {},
  "title_tag": "Tidewater changelog: new features and fixes",
  "meta_description": "Every Tidewater release, newest first: what is new, what got better and what was fixed. Subscribe to the feed for updates.",
  "tips": [
    "Add the release date to version 2.2.0.",
    "Replace \"Various improvements\" in 2.2.0 with what got better, or drop the line.",
    "Say what readers must update in 2.0.0 now that `parse()` returns `null` instead of throwing."
  ]
}

On the page, the headline and intro change, the untitled releases get a title, the title tag and meta description are replaced, and the tips join the check.

GitHub release notes (Larkspur, no product name)

Input:

{
  "task": "refine",
  "product": "",
  "audience": "",
  "headline": "",
  "intro": "",
  "releases": "v1-9-0 | 1.9.0 |  |  | \nv1-8-2 | 1.8.2 |  |  | \nv1-8-0 | 1.8.0 |  |  | ",
  "entries": "e1 | v1-9-0 | new | `larkspur init` asks which template to start from | commit style\ne2 | v1-9-0 | new | deploy: Add --dry-run to preview a deploy without changing anything | commit style\ne3 | v1-9-0 | fixed | Config files with Windows line endings are read correctly | commit style\ne6 | v1-8-2 | fixed | `larkspur login` no longer loops when the browser window is closed early | commit style\ne7 | v1-8-2 | fixed | Improve stuff | vague; commit style\ne8 | v1-8-0 | breaking | The `--env` flag is now `--environment` | \ne9 | v1-8-0 | new | deploy: Deploy several services at once with `larkspur deploy --all` | commit style\ne10 | v1-8-0 | new | logs: Stream logs from every instance with `--follow` | commit style\ne11 | v1-8-0 | fixed | Exit code is 1 when a deploy fails | ",
  "problems": "entries.vague, entries.terse, breaking.present, product.none",
  "entries_note": ""
}

Reply:

{
  "headline": "Release notes: what's new, improved and fixed",
  "intro": "This page lists every release, newest first, with what is new, what got better and what was fixed.",
  "titles": {
    "v1-9-0": "Template choice on init and deploy dry runs",
    "v1-8-2": "Login no longer loops when the browser closes early",
    "v1-8-0": "Deploy several services at once and stream logs"
  },
  "entries": {
    "e1": "You can now choose which template to start from when you run `larkspur init`.",
    "e2": "You can now preview a deploy with `--dry-run` without changing anything.",
    "e3": "Config files with Windows line endings are now read correctly.",
    "e6": "`larkspur login` no longer loops when you close the browser window early.",
    "e9": "You can now deploy several services at once with `larkspur deploy --all`.",
    "e10": "You can now stream logs from every instance with `--follow`."
  },
  "title_tag": "",
  "meta_description": "Every release, newest first: what is new, what got better and what was fixed. Subscribe to the feed for updates.",
  "tips": [
    "Replace \"Improve stuff\" in 1.8.2 with what was fixed, or drop the line.",
    "Say in 1.8.0 that readers must replace `--env` with `--environment` in their commands.",
    "Add the product name so the headline, intro and title tag can name it."
  ]
}

On the page, the headline and intro change, the commit-style lines are rewritten for readers and the releases get titles; there is no title tag because the notes name no product.

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://changelog-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":"changelog-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": "refine", "product": "Pinecart", "audience": "", "headline": "What's new in Pinecart", "intro": "Pinecart is an online shop builder for small makers. Every change we ship lands here.", "releases": "v3-8 | 3.8 | Gift cards |  | \nv3-7 | 3.7 |  |  | \nv3-6 | 3.6 | Shipping labels |  | \nv3-5 | 3.5 |  |  | \nv3-4 | 3.4 | Dark mode for the dashboard |  | ", "entries": "e1 | v3-8 | new | Sell gift cards in any amount and let customers pay with them at checkout | \ne2 | v3-8 | new | Customers can check a gift card's balance from the order page | \ne3 | v3-8 | improved | Product photos load faster on phones | \ne4 | v3-8 | fixed | Discount codes with lowercase letters were rejected at checkout | \ne5 | v3-7 | new | We added bulk editing for product prices | we voice\ne6 | v3-7 | improved | The orders list remembers your filters | \ne7 | v3-7 | fixed | Bug fixes | vague\ne9 | v3-6 | new | Print shipping labels for domestic orders straight from an order | \ne10 | v3-6 | improved | Minor improvements | vague\ne11 | v3-6 | fixed | Tax was added twice on orders with a shipping discount | \ne12 | v3-5 | new | Abandoned cart emails, sent an hour after a shopper leaves | \ne14 | v3-4 | new | A dark theme for the dashboard | \ne15 | v3-4 | fixed | Exported order CSVs now keep leading zeros in postcodes | ", "problems": "entries.vague, entries.voice", "entries_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="changelog-page-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: headline, intro, titles, entries, title_tag, meta_description, tips
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: changelog-page-generator:refine:$(shasum -a 256 input.json | cut -c1-16):a1" --data @input.json