Skip to content

API reference

Tools

Run any of the SemanticsOn tools and fetch the result. Runs are asynchronous: start one, then poll the execution or listen for the tool.completed webhook.

List tools

GET/tools

All enabled tools with their input fields (the same fields the dashboard form uses) and whether your plan includes them.

Query parameters

  • categorystringoptional

    Filter by category: topical-map, keywords, content-intelligence, content-studio, entity-seo, eeat, technical, internal-linking, competitors, advanced

curl https://semanticson.com/api/v1/tools \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY"

Response · 200 OK

A JSON object. Objects carry an object type and an id; timestamps are ISO 8601 strings.

Errors use the standard error object.

Get a tool

GET/tools/{slug}

One tool with its input fields (name, type, label, options, required, defaults) — build a form or a request body for POST /tools/{slug}/run from them.

Path parameters

  • slugstringrequired

    1–100 characters

curl https://semanticson.com/api/v1/tools/SLUG \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY"

Response · 200 OK

A JSON object. Objects carry an object type and an id; timestamps are ISO 8601 strings.

Errors use the standard error object.

Run a tool

POST/tools/{slug}/run

Queues a tool run and returns immediately with status queued. Poll GET /executions/{executionId} (or subscribe to the tool.completed webhook) for the result. Plan access, run limits and AI allowance apply exactly as in the dashboard. With a site key the run belongs to the site's project.

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • slugstringrequired

    1–100 characters

Request body

  • inputobjectoptional

    Field values keyed by field name (see fields in GET /tools)

    default {}

  • projectIdstring or nulloptional

    Save results to this project

    at most 64 characters

Response fields Show 13 fields
  • object"execution"
  • idstring
  • toolstring
  • toolNamestring
  • projectIdstring or null
  • statusstring

    One of: queued, running, succeeded, failed, cancelled

  • progressstring or null
  • errorobject or null
  • error.codestring
  • error.messagestring
  • resultany

    Tool result (summary, blocks, data, sources) once succeeded

  • usageobject
  • usage.inputTokensnumber
  • usage.outputTokensnumber
  • usage.usedOwnKeyboolean
  • createdAtstring
  • startedAtstring or null
  • finishedAtstring or null
curl -X POST https://semanticson.com/api/v1/tools/SLUG/run \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "niche": "specialty coffee equipment",
    "depth": "standard"
  },
  "projectId": "cm1abc…"
}'

Response · 202 Accepted

A JSON object with the fields listed under Response fields.

Errors use the standard error object.

Get a tool run

GET/executions/{executionId}

Status and, once succeeded, the full result of a tool run.

Path parameters

  • executionIdstringrequired

    1–64 characters

Response fields Show 13 fields
  • object"execution"
  • idstring
  • toolstring
  • toolNamestring
  • projectIdstring or null
  • statusstring

    One of: queued, running, succeeded, failed, cancelled

  • progressstring or null
  • errorobject or null
  • error.codestring
  • error.messagestring
  • resultany

    Tool result (summary, blocks, data, sources) once succeeded

  • usageobject
  • usage.inputTokensnumber
  • usage.outputTokensnumber
  • usage.usedOwnKeyboolean
  • createdAtstring
  • startedAtstring or null
  • finishedAtstring or null
curl https://semanticson.com/api/v1/executions/EXECUTION_ID \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY"

Response · 200 OK

A JSON object with the fields listed under Response fields.

Errors use the standard error object.

List tool runs

GET/executions

Your tool runs, newest first, without result (fetch GET /executions/{executionId} for it). With a site key, only runs in the site's project.

Query parameters

  • limitintegeroptional

    Items per page, 1–100.

    1–100 · default 25

  • cursorstringoptional

    Pass nextCursor from the previous page to get the next one.

    at most 200 characters

  • toolstringoptional

    Tool slug

    at most 100 characters

  • projectIdstringoptional

    at most 64 characters

  • statusstringoptional

    One of: queued, running, succeeded, failed, cancelled

curl https://semanticson.com/api/v1/executions \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY"

Response · 200 OK

A list object: { "object": "list", "data": [ … ], "hasMore": false, "nextCursor": null }. See pagination.

Errors use the standard error object.

Download a tool result

GET/executions/{executionId}/export

Returns the file itself (content-disposition: attachment), not JSON. Only succeeded runs can be exported. Formats not included in your plan return 402 export_not_in_plan; brandId (a white-label brand profile) requires a plan with white-label reports.

Path parameters

  • executionIdstringrequired

    The execution id

    1–64 characters

Query parameters

  • formatstringrequired

    File format: csv, json, md, html, xlsx, pdf, docx. Available formats depend on your plan (plan.features.exports in GET /me).

    One of: csv, json, md, html, xlsx, pdf, docx

  • brandIdstringoptional

    at most 64 characters

curl https://semanticson.com/api/v1/executions/EXECUTION_ID/export \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY"

Response · 200 OK

A JSON object. Objects carry an object type and an id; timestamps are ISO 8601 strings.

Errors use the standard error object.