← Press Coverage Page Generator
Your token

Press Coverage Page Generator API

Reading your list of press mentions, checking it and writing the press page or As Seen In section in HTML and CSS, the head tags with CollectionPage JSON-LD, Markdown and the coverage list all run free in the browser and need no API. The API is for the one metered step: send your mentions, numbered, with their outlet, headline, kind (and whether the kind was guessed), date, link, quote and whether they are self-published, and get back, as JSON, the kind of each mention whose kind was only guessed, the outlets for the As Seen In strip when you marked none, which pasted quote to use as the pull quote, and a short intro for the full page. The page checks every id and pick, never lets a release or a self-published post into the strip or the quote, and refuses an intro 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": "refine".

taskWhat it doesReply
refineCorrects the kind of mentions whose kind was guessed (news, review, list, podcast, video, award, release), picks up to six outlets for the As Seen In strip (known_outlet, trade_outlet, recent_coverage) when none is marked, picks the pull quote from your pasted quotes, and writes a one- or two-sentence intro for a full page.One JSON object

Input fields

All values are strings. task and mentions are required.

FieldMeaning
task"refine"
companyYour company or product name, or "".
headingYour page heading, or "".
format"page" (a full press page) or "section" (an As Seen In section).
has_intro"yes" when you wrote your own intro, otherwise "no".
mentionsJSON text: [{id, outlet, headline, kind, kind_from, date, link, quote, self_published, in_strip}] in list order, ids like c4. kind_from is you or guess; link is the address without https://; self_published and in_strip are booleans. At most 60.
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: kinds, a list of {id, kind} for mentions whose guessed kind was wrong; strip, a list of {id, why}; quote, {id} or null; and intro, a string. Before using it, check every id, that no kind you set yourself is changed, that the strip has no release, self-published post or repeated outlet, that the quote comes from coverage with a quote, and that the intro 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 pick that arrived whole.

Worked example

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

{
  "task": "refine",
  "company": "Brightkiln",
  "heading": "",
  "format": "page",
  "has_intro": "no",
  "mentions": "[{\"id\":\"c1\",\"outlet\":\"Harbor Gazette\",\"headline\":\"Brightkiln raises $2.1M to bring smart controllers to pottery studios\",\"kind\":\"news\",\"kind_from\":\"you\",\"date\":\"2026-10-14\",\"link\":\"harbor-gazette.example.com/business/2026/10/14/brightkiln-seed-round\",\"quote\":\"Brightkiln turns the most nerve-racking part of pottery into something you can check from your phone.\",\"self_published\":false,\"in_strip\":true},{\"id\":\"c2\",\"outlet\":\"Brightkiln\",\"headline\":\"Brightkiln launches the K2 kiln controller\",\"kind\":\"release\",\"kind_from\":\"you\",\"date\":\"2026-09-01\",\"link\":\"brightkiln.example.com/press/k2-launch\",\"quote\":\"Our most precise controller yet.\",\"self_published\":false,\"in_strip\":false},{\"id\":\"c3\",\"outlet\":\"Northfield Business Journal\",\"headline\":\"Inside the small-batch hardware boom: 5 founders to watch\",\"kind\":\"list\",\"kind_from\":\"you\",\"date\":\"2026-08\",\"link\":\"nbj.example.com/2026/08/small-batch-hardware-founders\",\"quote\":\"\",\"self_published\":false,\"in_strip\":true},{\"id\":\"c4\",\"outlet\":\"Makers Weekly\",\"headline\":\"Brightkiln review: a kiln controller that explains itself\",\"kind\":\"review\",\"kind_from\":\"you\",\"date\":\"2026-06-03\",\"link\":\"makers-weekly.example.com/reviews/brightkiln-controller\",\"quote\":\"The firing graph alone is worth it.\",\"self_published\":false,\"in_strip\":true},{\"id\":\"c5\",\"outlet\":\"The Clay Review\",\"headline\":\"How studios are cutting firing failures with sensors\",\"kind\":\"news\",\"kind_from\":\"guess\",\"date\":\"2026-05-19\",\"link\":\"clayreview.example.com/features/firing-sensors\",\"quote\":\"\",\"self_published\":false,\"in_strip\":true},{\"id\":\"c6\",\"outlet\":\"Startup Signal\",\"headline\":\"Episode 87: Firing clay with software, with Ana Brandt\",\"kind\":\"podcast\",\"kind_from\":\"you\",\"date\":\"2026-04-22\",\"link\":\"startup-signal.example.com/episodes/87\",\"quote\":\"\",\"self_published\":false,\"in_strip\":true},{\"id\":\"c7\",\"outlet\":\"Kitchen Table Tech\",\"headline\":\"We tested a smart kiln for a month\",\"kind\":\"video\",\"kind_from\":\"you\",\"date\":\"2026-03-10\",\"link\":\"kitchentabletech.example.com/watch/smart-kiln-month\",\"quote\":\"\",\"self_published\":false,\"in_strip\":true},{\"id\":\"c8\",\"outlet\":\"Craft Business Awards\",\"headline\":\"Brightkiln named Best New Studio Tool 2026\",\"kind\":\"award\",\"kind_from\":\"you\",\"date\":\"2026-02-26\",\"link\":\"craftawards.example.com/2026/winners\",\"quote\":\"\",\"self_published\":false,\"in_strip\":false},{\"id\":\"c9\",\"outlet\":\"Harbor Gazette\",\"headline\":\"Local startups to watch in 2026\",\"kind\":\"news\",\"kind_from\":\"guess\",\"date\":\"2026-01-05\",\"link\":\"harbor-gazette.example.com/business/2026/01/05/startups-to-watch\",\"quote\":\"\",\"self_published\":false,\"in_strip\":false},{\"id\":\"c10\",\"outlet\":\"Potters Digest\",\"headline\":\"Five kiln controllers compared\",\"kind\":\"news\",\"kind_from\":\"guess\",\"date\":\"2025-11-18\",\"link\":\"potters-digest.example.com/kiln-controllers-compared\",\"quote\":\"\",\"self_published\":false,\"in_strip\":false},{\"id\":\"c11\",\"outlet\":\"The Clay Review\",\"headline\":\"Brightkiln adds cone 10 support\",\"kind\":\"news\",\"kind_from\":\"you\",\"date\":\"2025-09-30\",\"link\":\"clayreview.example.com/news/brightkiln-cone-10\",\"quote\":\"\",\"self_published\":false,\"in_strip\":false},{\"id\":\"c12\",\"outlet\":\"Medium\",\"headline\":\"Why we built Brightkiln\",\"kind\":\"news\",\"kind_from\":\"guess\",\"date\":\"2025-07-01\",\"link\":\"medium.com/@anabrandt/why-we-built-brightkiln\",\"quote\":\"\",\"self_published\":true,\"in_strip\":false},{\"id\":\"c13\",\"outlet\":\"Glaze & Fire\",\"headline\":\"The studio tools our readers love\",\"kind\":\"news\",\"kind_from\":\"guess\",\"date\":\"2026-07-22\",\"link\":\"glazeandfire.example.com/2026/07/studio-tools-readers-love\",\"quote\":\"Set it, walk away, sleep.\",\"self_published\":false,\"in_strip\":false}]",
  "items_note": ""
}

Reply:

{"kinds":[{"id":"c9","kind":"list"},{"id":"c10","kind":"review"},{"id":"c13","kind":"list"}],"strip":[],"quote":{"id":"c1"},"intro":"Press coverage of Brightkiln, including news articles, reviews, a podcast episode, a video and an award, with a link to each piece."}

On the page, the startups-to-watch story and the readers' favourites piece move under Lists and roundups, the kiln controller comparison moves under Reviews, the Harbor Gazette quote stays the pull quote and the intro opens the page. The strip is left alone because the list already marks six outlets.

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://press-coverage-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":"press-coverage-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", "company": "Brightkiln", "heading": "", "format": "page", "has_intro": "no", "mentions": "[...]", "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="press-coverage-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: kinds, strip, quote, intro
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: press-coverage-page-generator:refine:$(shasum -a 256 input.json | cut -c1-16):a1" --data @input.json