API reference
The SemanticsOn REST API has 122 endpoints in 15 groups. This reference is generated from the same definitions that route and validate requests, so it always matches what the API accepts.
Basics
| Details | |
|---|---|
| Base URL | https://semanticson.com/api/v1 (examples use this host; your account's API lives at https://semanticson.vercel.app/api/v1) |
| Authentication | Authorization: Bearer <key> on every request. See authentication. |
| Format | JSON in and out (Content-Type: application/json), UTF-8, camelCase field names, ISO 8601 timestamps. |
| Objects | Every object has object (its type) and id. Lists return { object: "list", data, hasMore, nextCursor }. |
| Status codes | 200 read or update, 201 created, 202 accepted (work continues in the background), 204 deleted. Errors are described in errors. |
| Headers | x-request-id on every response; x-ratelimit-* on authenticated responses; Idempotency-Key accepted on writes. |
OpenAPI, Postman & Insomnia
A complete OpenAPI 3.1 description of the API, including webhook payloads, is published at https://semanticson.vercel.app/api/v1/openapi.json. It is public, so tools can fetch it without a key.
Import into Postman
- In Postman choose Import, select Link and paste the URL above.
- Pick Postman Collection as the import format. Requests are grouped by the same tags as this reference.
- Open the collection's Authorization tab, choose Bearer Token and enter your key (store it in an environment variable rather than the collection).
Import into Insomnia
- Choose Create → Import, select URL and paste the same address.
- Set an environment variable for the key and use it as a Bearer token on the collection.
curl -o semanticson-openapi.json https://semanticson.vercel.app/api/v1/openapi.jsonThe document also works with code generators such as openapi-generator. There is no official SDK: every example on this site is a plain HTTP request you can adapt to any language.
All endpoints
Filter the list, or open a group to see parameters, examples and responses. Press / to jump to the filter.
122 of 122 endpoints
- GET
/projects/{projectId}/topical-mapsList topical maps - GET
/topical-maps/{mapId}Get a topical map with its pages and internal links - POST
/projects/{projectId}/topical-mapsCreate a topical map - PATCH
/topical-maps/{mapId}Update a topical map - DELETE
/topical-maps/{mapId}Delete a topical map - POST
/topical-maps/{mapId}/duplicateDuplicate a topical map - POST
/topical-maps/{mapId}/nodesAdd a page to a topical map - PATCH
/topical-maps/{mapId}/nodes/{nodeId}Update or move a page - DELETE
/topical-maps/{mapId}/nodes/{nodeId}Delete a page and the pages beneath it - POST
/topical-maps/{mapId}/linksPlan an internal link - DELETE
/topical-maps/{mapId}/links/{linkId}Remove a planned internal link
- GET
/projects/{projectId}/clustersList keyword clusters - POST
/projects/{projectId}/clustersCreate a keyword cluster - GET
/clusters/{clusterId}Get a keyword cluster - PATCH
/clusters/{clusterId}Update a keyword cluster - DELETE
/clusters/{clusterId}Delete a keyword cluster - POST
/clusters/{clusterId}/mergeMerge a cluster into another
- GET
/projects/{projectId}/documentsList documents - POST
/projects/{projectId}/documentsCreate a document - GET
/documents/{documentId}Get a document - PATCH
/documents/{documentId}Update a document - DELETE
/documents/{documentId}Delete a document - GET
/documents/{documentId}/versionsList saved versions - POST
/documents/{documentId}/versions/{versionId}/restoreRestore a version - GET
/documents/{documentId}/exportDownload a document - POST
/documents/{documentId}/publishPropose publishing a document to a connected website
- GET
/projects/{projectId}/entitiesList entities - POST
/projects/{projectId}/entitiesCreate an entity - GET
/entities/{entityId}Get an entity - PATCH
/entities/{entityId}Update an entity - DELETE
/entities/{entityId}Delete an entity - POST
/entities/{entityId}/relationsRelate this entity to another - DELETE
/entities/{entityId}/relations/{relationId}Remove a relation
Audits
10- GET
/projects/{projectId}/auditsList audits for a project - POST
/projects/{projectId}/auditsStart an audit - GET
/audits/{auditId}Get an audit - GET
/audits/{auditId}/changesWhat changed since the previous audit - GET
/audits/{auditId}/issuesList issues in an audit - PATCH
/audits/{auditId}/issues/{issueId}Mark an issue fixed, ignored or open - GET
/projects/{projectId}/audit-schedulesList audit schedules - POST
/projects/{projectId}/audit-schedulesSchedule recurring audits - PATCH
/audit-schedules/{scheduleId}Update an audit schedule - DELETE
/audit-schedules/{scheduleId}Delete an audit schedule
- GET
/sitesList connected sites - POST
/sitesConnect a website - GET
/sites/{siteId}Get a connected site - PATCH
/sites/{siteId}Update a connected site - DELETE
/sites/{siteId}Disconnect a website - POST
/sites/{siteId}/rotate-keyIssue a new site key - GET
/sites/{siteId}/pagesList synced pages - GET
/sites/{siteId}/pages/{pageId}Get a synced page - GET
/sites/{siteId}/redirectsList synced redirects - GET
/sites/{siteId}/termsList synced categories, tags and other terms - GET
/sites/{siteId}/mediaList synced media - POST
/sites/{siteId}/syncAsk the website to sync now
- GET
/sites/{siteId}/changesList changes for a site - POST
/sites/{siteId}/changesPropose changes - GET
/changes/{changeId}Get a change - POST
/changes/{changeId}/approveApprove a change - POST
/changes/{changeId}/rejectReject a change - POST
/changes/{changeId}/cancelWithdraw a pending change - POST
/changes/{changeId}/revertUndo an applied change
- GET
/webhooks/eventsList webhook events - GET
/webhooksList webhooks - POST
/webhooksCreate a webhook - GET
/webhooks/{webhookId}Get a webhook - PATCH
/webhooks/{webhookId}Update a webhook - DELETE
/webhooks/{webhookId}Delete a webhook - POST
/webhooks/{webhookId}/testSend a test event - GET
/webhooks/{webhookId}/deliveriesList deliveries - POST
/webhooks/{webhookId}/deliveries/{deliveryId}/retryRedeliver now
- GET
/siteGet this site's connection - POST
/site/disconnectDisconnect this site - POST
/site/heartbeatReport site details - POST
/site/syncStart a full sync - POST
/site/pagesSend pages - POST
/site/redirectsSend redirects - POST
/site/termsSend categories, tags and other terms - POST
/site/mediaSend media library items - POST
/site/sync/{syncId}/finishFinish a full sync - DELETE
/site/pages/{externalId}Remove a page - DELETE
/site/redirects/{redirectId}Remove a redirect - DELETE
/site/terms/{taxonomy}/{termId}Remove a term - DELETE
/site/media/{mediaId}Remove a media item - GET
/site/changesChanges for this site - POST
/site/changes/{changeId}/approveApprove a change from the site admin - POST
/site/changes/{changeId}/rejectReject a change from the site admin - POST
/site/changes/{changeId}/resultReport the outcome of applying a change - POST
/site/changes/{changeId}/revertedReport that a change was undone - GET
/site/pages/{externalId}/insightsEverything SemanticsOn knows about one page - POST
/connect/exchangeExchange a connect code for a site key