← Integrations Page Generator
Your token

Integrations Page Generator API

Reading your list, checking it and writing the integrations HTML, the CSS, the filter script, the 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 integrations, numbered, with their category, description and status, plus a list of categories to choose from, and get back, as JSON, a category for each integration that has none, the integrations to feature, and descriptions that are vague, too technical or make a claim a reader cannot check. The model never writes new text; the page checks every id and refuses any choice it cannot check.

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 integration with no category into one of the categories sent (your own first), picks 3 to 8 to feature when none are marked, and points out descriptions to reword (vague, jargon, needs_source). It never writes new words.One JSON object

Input fields

All values are strings. task and items are required.

FieldMeaning
task"sort"
productYour product's name, or "".
itemsJSON text: [{id, name, category, desc, status, featured}] in list order, ids like i4. category and desc may be ""; status is live, beta or soon; featured is true when you already marked it. At most 120.
categoriesJSON text: [{id, name, yours}]. Your own categories 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 three keys: assign, a list of {id, category} for integrations that had no category (one the model cannot recognise is left out); featured, a list of integration ids, empty when you already marked some; and flag, a list of {id, why} where why is vague, jargon or needs_source. Before using it, check that every id is one you sent, that no integration with a category is reassigned, that no coming-soon integration is featured and no more than 8 are, and that no flag sits on an empty description; 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": "Quillbill",
  "items": "[{\"id\":\"i1\",\"name\":\"Slack\",\"category\":\"Communication\",\"desc\":\"Get a Slack message when a client pays or an invoice is overdue.\",\"status\":\"live\",\"featured\":true},{\"id\":\"i2\",\"name\":\"Microsoft Teams\",\"category\":\"Communication\",\"desc\":\"Post paid and overdue invoices to a Teams channel.\",\"status\":\"live\",\"featured\":false},{\"id\":\"i3\",\"name\":\"Stripe\",\"category\":\"Payments\",\"desc\":\"Let clients pay invoices by card; payments mark the invoice paid.\",\"status\":\"live\",\"featured\":true},{\"id\":\"i4\",\"name\":\"PayPal\",\"category\":\"Payments\",\"desc\":\"Add a PayPal button to every invoice.\",\"status\":\"live\",\"featured\":false},{\"id\":\"i5\",\"name\":\"GoCardless\",\"category\":\"Payments\",\"desc\":\"Collect recurring invoices by direct debit.\",\"status\":\"beta\",\"featured\":false},{\"id\":\"i6\",\"name\":\"Xero\",\"category\":\"Accounting\",\"desc\":\"The best accounting sync on the market.\",\"status\":\"live\",\"featured\":true},{\"id\":\"i7\",\"name\":\"QuickBooks Online\",\"category\":\"Accounting\",\"desc\":\"Send invoices and payments to QuickBooks as they happen.\",\"status\":\"live\",\"featured\":true},{\"id\":\"i8\",\"name\":\"Google Calendar\",\"category\":\"Time tracking\",\"desc\":\"Turn calendar events into billable time entries.\",\"status\":\"live\",\"featured\":false},{\"id\":\"i9\",\"name\":\"Toggl Track\",\"category\":\"Time tracking\",\"desc\":\"Import tracked hours into an invoice in one click.\",\"status\":\"live\",\"featured\":false},{\"id\":\"i10\",\"name\":\"Zapier\",\"category\":\"\",\"desc\":\"Integration with Zapier.\",\"status\":\"live\",\"featured\":false},{\"id\":\"i11\",\"name\":\"HubSpot\",\"category\":\"\",\"desc\":\"Create a draft invoice when a deal is marked won.\",\"status\":\"live\",\"featured\":false},{\"id\":\"i12\",\"name\":\"Google Drive\",\"category\":\"\",\"desc\":\"Save a PDF copy of every sent invoice to a Drive folder.\",\"status\":\"live\",\"featured\":false},{\"id\":\"i13\",\"name\":\"Shopify\",\"category\":\"\",\"desc\":\"Invoice wholesale orders from your Shopify store.\",\"status\":\"soon\",\"featured\":false},{\"id\":\"i14\",\"name\":\"Notion\",\"category\":\"\",\"desc\":\"Keep a client list in Notion in step with your Quillbill clients.\",\"status\":\"beta\",\"featured\":false}]",
  "categories": "[{\"id\":\"c1\",\"name\":\"Communication\",\"yours\":true},{\"id\":\"c2\",\"name\":\"Payments\",\"yours\":true},{\"id\":\"c3\",\"name\":\"Accounting\",\"yours\":true},{\"id\":\"c4\",\"name\":\"Time tracking\",\"yours\":true},{\"id\":\"s1\",\"name\":\"Project management\",\"yours\":false},{\"id\":\"s2\",\"name\":\"CRM and sales\",\"yours\":false},{\"id\":\"s3\",\"name\":\"Marketing\",\"yours\":false},{\"id\":\"s4\",\"name\":\"Email marketing\",\"yours\":false},{\"id\":\"s5\",\"name\":\"E-commerce\",\"yours\":false},{\"id\":\"s6\",\"name\":\"Files and storage\",\"yours\":false},{\"id\":\"s7\",\"name\":\"Calendar and scheduling\",\"yours\":false},{\"id\":\"s8\",\"name\":\"Video meetings\",\"yours\":false},{\"id\":\"s9\",\"name\":\"Customer support\",\"yours\":false},{\"id\":\"s10\",\"name\":\"Developer tools\",\"yours\":false},{\"id\":\"s11\",\"name\":\"Analytics\",\"yours\":false},{\"id\":\"s12\",\"name\":\"Design\",\"yours\":false},{\"id\":\"s13\",\"name\":\"Forms and surveys\",\"yours\":false},{\"id\":\"s14\",\"name\":\"Automation\",\"yours\":false},{\"id\":\"s15\",\"name\":\"HR and people\",\"yours\":false},{\"id\":\"s16\",\"name\":\"Security and sign-in\",\"yours\":false},{\"id\":\"s17\",\"name\":\"Social media\",\"yours\":false},{\"id\":\"s18\",\"name\":\"Productivity\",\"yours\":false},{\"id\":\"s19\",\"name\":\"Data and spreadsheets\",\"yours\":false}]",
  "items_note": ""
}

Reply:

{"assign":[{"id":"i10","category":"s14"},{"id":"i11","category":"s2"},{"id":"i12","category":"s6"},{"id":"i13","category":"s5"},{"id":"i14","category":"s18"}],"featured":[],"flag":[{"id":"i10","why":"vague"},{"id":"i6","why":"needs_source"}]}

On the page, Zapier moves under Automation, HubSpot under CRM and sales, Google Drive under Files and storage, Shopify under E-commerce and Notion under Productivity; the featured row keeps your own four picks; “Integration with Zapier.” and “The best accounting sync on the market.” are listed in the check as wording to fix.

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://integrations-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":"integrations-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": "Quillbill", "items": "[...]", "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="integrations-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, featured, flag
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: integrations-page-generator:sort:$(shasum -a 256 input.json | cut -c1-16):a1" --data @input.json