Skip to content

API and webhooks

Authenticate with an API key, start tool runs, poll for results and receive signed webhook events.

The REST API lets you run tools and read project data from your own systems. It is available on plans that include API access.

Authentication

Create a key under API settings in the dashboard. The key is shown once; store it securely. Only a hash is kept, so a lost key cannot be recovered — revoke it and create another.

Send the key as a bearer token:

Authorization: Bearer so_live_xxxxxxxxxxxxxxxx

All endpoints are under /api/v1 and return JSON.

Endpoints

Method Path Purpose
GET /api/v1/me The account and plan the key belongs to
GET /api/v1/tools Tools available to the account
POST /api/v1/tools/{slug}/run Start a tool run
GET /api/v1/executions/{id} Status and result of a run
GET /api/v1/projects Your projects
GET /api/v1/projects/{id}/topical-maps Topical maps saved to a project
GET /api/v1/projects/{id}/keywords Keywords saved to a project

Running a tool

Tool runs are asynchronous. Start the run, then poll for the result.

curl -X POST https://semanticson.com/api/v1/tools/ai-topical-map-generator/run \
  -H "Authorization: Bearer $SEMANTICSON_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "projectId": "YOUR_PROJECT_ID", "input": { "depth": "standard" } }'

The response has status 202 and contains an executionId and a statusUrl. The input object uses the same field names as the tool's form; GET /api/v1/tools lists them. projectId is optional for tools that do not need a project.

Poll the status URL until the run has finished:

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

A run started through the API is subject to the same plan access, run limits and AI allowance as one started in the dashboard.

Errors

Errors use standard HTTP status codes and a JSON body:

{ "error": { "code": "rate_limited", "message": "Too many requests. Retry in 12s." } }
Status Meaning
400 The request or tool input is invalid
401 The API key is missing, invalid or revoked
402 A plan limit has been reached
403 API access is not included in the plan
404 The tool, project or run was not found
429 Rate limit exceeded — see the Retry-After header

Rate limits

Each key is limited to 60 requests per minute. Monthly request quotas depend on the plan.

Webhooks

Webhooks notify your systems when something happens, so you do not have to poll. Add an endpoint URL and choose the events to receive.

Events:

  • tool.completed
  • tool.failed
  • report.ready
  • project.created
  • content.published

Each delivery is a POST with a JSON body:

{ "event": "tool.completed", "createdAt": "2026-11-02T09:00:00.000Z", "data": { } }

Verifying signatures

Every delivery includes two headers:

  • X-SemanticsOn-Event — the event name;
  • X-SemanticsOn-Signature — sha256= followed by the HMAC-SHA256 of the raw request body, keyed with your webhook secret.

Compute the same HMAC over the raw body on your side and compare it, using a constant-time comparison, before trusting the payload.

Deliveries time out after 10 seconds. Respond with a 2xx status quickly and do any slow processing afterwards. The status of the most recent delivery is shown next to each webhook.

Last updated 10 November 2026