API reference
Topical maps
Topical maps endpoints of the SemanticsOn REST API.
List topical maps
GET/projects/{projectId}/topical-mapsPath parameters
projectIdstringrequired
Query parameters
limitintegeroptionalItems per page, 1–100.
1–100 · default 25
cursorstringoptionalPass
nextCursorfrom the previous page to get the next one.at most 200 characters
curl https://semanticson.com/api/v1/projects/PROJECT_ID/topical-maps \
-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.
Get a topical map with its pages and internal links
GET/topical-maps/{mapId}By default nodes is a flat list ordered by position (rebuild the tree with parentId). With ?format=tree, tree holds the central node with nested children instead. Node type follows the level: central → pillar → cluster → supporting. gaps are topics a tool suggested adding.
Path parameters
mapIdstringrequiredThe map id
1–64 characters
Query parameters
formatstringoptionalOne of:
flat,treedefault "flat"
curl https://semanticson.com/api/v1/topical-maps/MAP_ID \
-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.
Create a topical map
POST/projects/{projectId}/topical-mapsCreates a map with its central node (titled after centralEntity, which defaults to the project's central entity or the map name). Optionally pass the whole structure at once: pillars → children (clusters) → children (supporting pages) — the same shape the Topical Map tool produces — and links between pages by title. Node types follow the nesting level. At most 3,000 pages.
Accepts an Idempotency-Key header for safe retries.
Path parameters
projectIdstringrequired
Request body
namestringrequired1–160 characters
centralEntitystringoptionalat most 160 characters
sourceContextstringoptionalWho the site is and why it covers this topic
at most 2,000 characters · default ""
languagestringoptionalDefaults to the project's language
2–12 characters
pillarsarray of objectsoptionalat most 200 items
pillars[].titlestringrequired1–200 characters
pillars[].urlPathstringoptionalPlanned URL path, e.g. /espresso/grind-size (a leading / is added when missing)
at most 300 characters
pillars[].intentstringoptionalSearch intent: informational, commercial, transactional, navigational or empty
One of:
,informational,commercial,transactional,navigationalpillars[].sectionstringoptionalcore(main topic) orouter(supporting context)One of:
core,outerpillars[].primaryKeywordstringoptionalat most 200 characters
pillars[].descriptionstringoptionalat most 2,000 characters
pillars[].entitiesarray of stringsoptionalat most 40 items
pillars[].statusstringoptionalCoverage status: missing, planned, briefed, drafted or published
One of:
missing,planned,briefed,drafted,publishedpillars[].childrenarray of objectsoptionalClusters
at most 200 items
pillars[].children[].titlestringrequired1–200 characters
pillars[].children[].urlPathstringoptionalPlanned URL path, e.g. /espresso/grind-size (a leading / is added when missing)
at most 300 characters
pillars[].children[].intentstringoptionalSearch intent: informational, commercial, transactional, navigational or empty
One of:
,informational,commercial,transactional,navigationalpillars[].children[].sectionstringoptionalcore(main topic) orouter(supporting context)One of:
core,outerpillars[].children[].primaryKeywordstringoptionalat most 200 characters
pillars[].children[].descriptionstringoptionalat most 2,000 characters
pillars[].children[].entitiesarray of stringsoptionalat most 40 items
pillars[].children[].statusstringoptionalCoverage status: missing, planned, briefed, drafted or published
One of:
missing,planned,briefed,drafted,publishedpillars[].children[].childrenarray of objectsoptionalSupporting pages
at most 200 items
pillars[].children[].children[].titlestringrequired1–200 characters
pillars[].children[].children[].urlPathstringoptionalPlanned URL path, e.g. /espresso/grind-size (a leading / is added when missing)
at most 300 characters
pillars[].children[].children[].intentstringoptionalSearch intent: informational, commercial, transactional, navigational or empty
One of:
,informational,commercial,transactional,navigationalpillars[].children[].children[].sectionstringoptionalcore(main topic) orouter(supporting context)One of:
core,outerpillars[].children[].children[].primaryKeywordstringoptionalat most 200 characters
pillars[].children[].children[].descriptionstringoptionalat most 2,000 characters
pillars[].children[].children[].entitiesarray of stringsoptionalat most 40 items
pillars[].children[].children[].statusstringoptionalCoverage status: missing, planned, briefed, drafted or published
One of:
missing,planned,briefed,drafted,publishedlinksarray of objectsoptionalInternal links between pages of this map, matched by title (case-insensitive)
at most 5,000 items · default []
links[].fromTitlestringrequired1–200 characters
links[].toTitlestringrequired1–200 characters
links[].anchorTextstringoptionalat most 200 characters · default ""
links[].reasonstringoptionalat most 500 characters · default ""
curl -X POST https://semanticson.com/api/v1/projects/PROJECT_ID/topical-maps \
-H "Authorization: Bearer $SEMANTICSON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Espresso at home",
"centralEntity": "Espresso",
"pillars": [
{
"title": "Espresso machines",
"intent": "commercial",
"children": [
{
"title": "Lever machines",
"children": [
{
"title": "Best lever machines under $500",
"primaryKeyword": "lever espresso machine"
}
]
}
]
}
],
"links": [
{
"fromTitle": "Lever machines",
"toTitle": "Espresso machines",
"anchorText": "espresso machines"
}
]
}'Response · 201 Created
A JSON object. Objects carry an object type and an id; timestamps are ISO 8601 strings.
Errors use the standard error object.
Update a topical map
PATCH/topical-maps/{mapId}Renaming the central entity also renames the map's central node.
Accepts an Idempotency-Key header for safe retries.
Path parameters
mapIdstringrequiredThe map id
1–64 characters
Request body
namestringoptional1–160 characters
centralEntitystringoptional1–160 characters
sourceContextstringoptionalat most 2,000 characters
curl -X PATCH https://semanticson.com/api/v1/topical-maps/MAP_ID \
-H "Authorization: Bearer $SEMANTICSON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Espresso at home (2026)",
"centralEntity": "Home espresso"
}'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.
Delete a topical map
DELETE/topical-maps/{mapId}Deletes the map with all its pages and links. Briefs linked to its pages are kept (unlinked).
Accepts an Idempotency-Key header for safe retries.
Path parameters
mapIdstringrequiredThe map id
1–64 characters
curl -X DELETE https://semanticson.com/api/v1/topical-maps/MAP_ID \
-H "Authorization: Bearer $SEMANTICSON_API_KEY"Response · 204 No Content
Success returns an empty body (204) or a small confirmation object.
Errors use the standard error object.
Duplicate a topical map
POST/topical-maps/{mapId}/duplicateDeep copy (pages, hierarchy, statuses and internal links) into the same project. New ids are issued for every page.
Accepts an Idempotency-Key header for safe retries.
Path parameters
mapIdstringrequiredThe map id
1–64 characters
Request body
namestringoptionalDefaults to “<name> (copy)”
1–160 characters
curl -X POST https://semanticson.com/api/v1/topical-maps/MAP_ID/duplicate \
-H "Authorization: Bearer $SEMANTICSON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Espresso at home — v2"
}'Response · 201 Created
A JSON object. Objects carry an object type and an id; timestamps are ISO 8601 strings.
Errors use the standard error object.
Add a page to a topical map
POST/topical-maps/{mapId}/nodesThe page's type follows its parent: a pillar under the central node, a cluster under a pillar, a supporting page under a cluster. Supporting pages cannot have children. If you send type it must match. New pages are appended after their siblings unless position is given.
Accepts an Idempotency-Key header for safe retries.
Path parameters
mapIdstringrequiredThe map id
1–64 characters
Request body
parentIdstringrequiredThe parent node id
1–64 characters
titlestringrequired1–200 characters
typestringoptionalOne of:
pillar,cluster,supportingurlPathstringoptionalPlanned URL path, e.g. /espresso/grind-size (a leading / is added when missing)
at most 300 characters
intentstringoptionalSearch intent: informational, commercial, transactional, navigational or empty
One of:
,informational,commercial,transactional,navigationalsectionstringoptionalcore(main topic) orouter(supporting context)One of:
core,outerprimaryKeywordstringoptionalat most 200 characters
descriptionstringoptionalat most 2,000 characters
entitiesarray of stringsoptionalat most 40 items
statusstringoptionalCoverage status: missing, planned, briefed, drafted or published
One of:
missing,planned,briefed,drafted,publishedlockedbooleanoptionalLocked pages cannot be moved or deleted until unlocked
positionintegeroptional0-based position among the parent's children
0–5,000
curl -X POST https://semanticson.com/api/v1/topical-maps/MAP_ID/nodes \
-H "Authorization: Bearer $SEMANTICSON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"parentId": "cm1pillar…",
"title": "Espresso grind size chart",
"intent": "informational",
"primaryKeyword": "espresso grind size",
"status": "planned"
}'Response · 201 Created
A JSON object. Objects carry an object type and an id; timestamps are ISO 8601 strings.
Errors use the standard error object.
Update or move a page
PATCH/topical-maps/{mapId}/nodes/{nodeId}Send only the fields to change. Renaming the central node also renames the map's central entity.
Moving: set parentId (and optionally position) to re-parent a page; position alone reorders it among its siblings. The page's level follows its new parent and its whole subtree shifts with it. A move is refused (400 invalid_hierarchy) when it would create a cycle or push a descendant below the supporting level, and (409 node_locked) when the page is locked — unlock it first with locked: false. The central node cannot be moved.
type cannot be set on its own: it always follows the parent. Send it together with parentId to assert the expected result, or alone to check it (it must match).
Accepts an Idempotency-Key header for safe retries.
Path parameters
mapIdstringrequiredThe map id
1–64 characters
nodeIdstringrequiredThe node id
1–64 characters
Request body
titlestringoptional1–200 characters
typestringoptionalOne of:
central,pillar,cluster,supportingurlPathstringoptionalPlanned URL path, e.g. /espresso/grind-size (a leading / is added when missing)
at most 300 characters
intentstringoptionalSearch intent: informational, commercial, transactional, navigational or empty
One of:
,informational,commercial,transactional,navigationalsectionstringoptionalcore(main topic) orouter(supporting context)One of:
core,outerprimaryKeywordstringoptionalat most 200 characters
descriptionstringoptionalat most 2,000 characters
entitiesarray of stringsoptionalat most 40 items
statusstringoptionalCoverage status: missing, planned, briefed, drafted or published
One of:
missing,planned,briefed,drafted,publishedlockedbooleanoptionalLocked pages cannot be moved or deleted until unlocked
parentIdstringoptionalThe new parent node id
1–64 characters
positionintegeroptional0–5,000
curl -X PATCH https://semanticson.com/api/v1/topical-maps/MAP_ID/nodes/NODE_ID \
-H "Authorization: Bearer $SEMANTICSON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Espresso grind size chart (2026)",
"status": "briefed",
"parentId": "cm1cluster…",
"position": 0
}'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.
Delete a page and the pages beneath it
DELETE/topical-maps/{mapId}/nodes/{nodeId}Deletes the page, its whole subtree and their internal links. Refused with 409 node_locked when the page or any page beneath it is locked. The central node cannot be deleted (delete the map instead).
Accepts an Idempotency-Key header for safe retries.
Path parameters
mapIdstringrequiredThe map id
1–64 characters
nodeIdstringrequiredThe node id
1–64 characters
curl -X DELETE https://semanticson.com/api/v1/topical-maps/MAP_ID/nodes/NODE_ID \
-H "Authorization: Bearer $SEMANTICSON_API_KEY"Response · 204 No Content
Success returns an empty body (204) or a small confirmation object.
Errors use the standard error object.
Plan an internal link
POST/topical-maps/{mapId}/linksA planned internal link from one page of the map to another. Each pair can be linked once (409 link_exists).
Accepts an Idempotency-Key header for safe retries.
Path parameters
mapIdstringrequiredThe map id
1–64 characters
Request body
fromIdstringrequiredThe source node id
1–64 characters
toIdstringrequiredThe target node id
1–64 characters
anchorTextstringoptionalat most 200 characters · default ""
reasonstringoptionalat most 500 characters · default ""
curl -X POST https://semanticson.com/api/v1/topical-maps/MAP_ID/links \
-H "Authorization: Bearer $SEMANTICSON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fromId": "cm1nodeA…",
"toId": "cm1nodeB…",
"anchorText": "espresso grind size",
"reason": "Supports the pillar with a practical guide"
}'Response · 201 Created
A JSON object. Objects carry an object type and an id; timestamps are ISO 8601 strings.
Errors use the standard error object.
Remove a planned internal link
DELETE/topical-maps/{mapId}/links/{linkId}Accepts an Idempotency-Key header for safe retries.
Path parameters
mapIdstringrequiredThe map id
1–64 characters
linkIdstringrequiredThe link id
1–64 characters
curl -X DELETE https://semanticson.com/api/v1/topical-maps/MAP_ID/links/LINK_ID \
-H "Authorization: Bearer $SEMANTICSON_API_KEY"Response · 204 No Content
Success returns an empty body (204) or a small confirmation object.
Errors use the standard error object.