Skip to content

API reference

Topical maps

Topical maps endpoints of the SemanticsOn REST API.

List topical maps

GET/projects/{projectId}/topical-maps

Path parameters

  • projectIdstringrequired

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

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.

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

  • mapIdstringrequired

    The map id

    1–64 characters

Query parameters

  • formatstringoptional

    One of: flat, tree

    default "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-maps

Creates 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

  • namestringrequired

    1–160 characters

  • centralEntitystringoptional

    at most 160 characters

  • sourceContextstringoptional

    Who the site is and why it covers this topic

    at most 2,000 characters · default ""

  • languagestringoptional

    Defaults to the project's language

    2–12 characters

  • pillarsarray of objectsoptional

    at most 200 items

  • pillars[].titlestringrequired

    1–200 characters

  • pillars[].urlPathstringoptional

    Planned URL path, e.g. /espresso/grind-size (a leading / is added when missing)

    at most 300 characters

  • pillars[].intentstringoptional

    Search intent: informational, commercial, transactional, navigational or empty

    One of: , informational, commercial, transactional, navigational

  • pillars[].sectionstringoptional

    core (main topic) or outer (supporting context)

    One of: core, outer

  • pillars[].primaryKeywordstringoptional

    at most 200 characters

  • pillars[].descriptionstringoptional

    at most 2,000 characters

  • pillars[].entitiesarray of stringsoptional

    at most 40 items

  • pillars[].statusstringoptional

    Coverage status: missing, planned, briefed, drafted or published

    One of: missing, planned, briefed, drafted, published

  • pillars[].childrenarray of objectsoptional

    Clusters

    at most 200 items

  • pillars[].children[].titlestringrequired

    1–200 characters

  • pillars[].children[].urlPathstringoptional

    Planned URL path, e.g. /espresso/grind-size (a leading / is added when missing)

    at most 300 characters

  • pillars[].children[].intentstringoptional

    Search intent: informational, commercial, transactional, navigational or empty

    One of: , informational, commercial, transactional, navigational

  • pillars[].children[].sectionstringoptional

    core (main topic) or outer (supporting context)

    One of: core, outer

  • pillars[].children[].primaryKeywordstringoptional

    at most 200 characters

  • pillars[].children[].descriptionstringoptional

    at most 2,000 characters

  • pillars[].children[].entitiesarray of stringsoptional

    at most 40 items

  • pillars[].children[].statusstringoptional

    Coverage status: missing, planned, briefed, drafted or published

    One of: missing, planned, briefed, drafted, published

  • pillars[].children[].childrenarray of objectsoptional

    Supporting pages

    at most 200 items

  • pillars[].children[].children[].titlestringrequired

    1–200 characters

  • pillars[].children[].children[].urlPathstringoptional

    Planned URL path, e.g. /espresso/grind-size (a leading / is added when missing)

    at most 300 characters

  • pillars[].children[].children[].intentstringoptional

    Search intent: informational, commercial, transactional, navigational or empty

    One of: , informational, commercial, transactional, navigational

  • pillars[].children[].children[].sectionstringoptional

    core (main topic) or outer (supporting context)

    One of: core, outer

  • pillars[].children[].children[].primaryKeywordstringoptional

    at most 200 characters

  • pillars[].children[].children[].descriptionstringoptional

    at most 2,000 characters

  • pillars[].children[].children[].entitiesarray of stringsoptional

    at most 40 items

  • pillars[].children[].children[].statusstringoptional

    Coverage status: missing, planned, briefed, drafted or published

    One of: missing, planned, briefed, drafted, published

  • linksarray of objectsoptional

    Internal links between pages of this map, matched by title (case-insensitive)

    at most 5,000 items · default []

  • links[].fromTitlestringrequired

    1–200 characters

  • links[].toTitlestringrequired

    1–200 characters

  • links[].anchorTextstringoptional

    at most 200 characters · default ""

  • links[].reasonstringoptional

    at 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

  • mapIdstringrequired

    The map id

    1–64 characters

Request body

  • namestringoptional

    1–160 characters

  • centralEntitystringoptional

    1–160 characters

  • sourceContextstringoptional

    at 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

  • mapIdstringrequired

    The 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}/duplicate

Deep 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

  • mapIdstringrequired

    The map id

    1–64 characters

Request body

  • namestringoptional

    Defaults 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}/nodes

The 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

  • mapIdstringrequired

    The map id

    1–64 characters

Request body

  • parentIdstringrequired

    The parent node id

    1–64 characters

  • titlestringrequired

    1–200 characters

  • typestringoptional

    One of: pillar, cluster, supporting

  • urlPathstringoptional

    Planned URL path, e.g. /espresso/grind-size (a leading / is added when missing)

    at most 300 characters

  • intentstringoptional

    Search intent: informational, commercial, transactional, navigational or empty

    One of: , informational, commercial, transactional, navigational

  • sectionstringoptional

    core (main topic) or outer (supporting context)

    One of: core, outer

  • primaryKeywordstringoptional

    at most 200 characters

  • descriptionstringoptional

    at most 2,000 characters

  • entitiesarray of stringsoptional

    at most 40 items

  • statusstringoptional

    Coverage status: missing, planned, briefed, drafted or published

    One of: missing, planned, briefed, drafted, published

  • lockedbooleanoptional

    Locked pages cannot be moved or deleted until unlocked

  • positionintegeroptional

    0-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

  • mapIdstringrequired

    The map id

    1–64 characters

  • nodeIdstringrequired

    The node id

    1–64 characters

Request body

  • titlestringoptional

    1–200 characters

  • typestringoptional

    One of: central, pillar, cluster, supporting

  • urlPathstringoptional

    Planned URL path, e.g. /espresso/grind-size (a leading / is added when missing)

    at most 300 characters

  • intentstringoptional

    Search intent: informational, commercial, transactional, navigational or empty

    One of: , informational, commercial, transactional, navigational

  • sectionstringoptional

    core (main topic) or outer (supporting context)

    One of: core, outer

  • primaryKeywordstringoptional

    at most 200 characters

  • descriptionstringoptional

    at most 2,000 characters

  • entitiesarray of stringsoptional

    at most 40 items

  • statusstringoptional

    Coverage status: missing, planned, briefed, drafted or published

    One of: missing, planned, briefed, drafted, published

  • lockedbooleanoptional

    Locked pages cannot be moved or deleted until unlocked

  • parentIdstringoptional

    The new parent node id

    1–64 characters

  • positionintegeroptional

    0–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

  • mapIdstringrequired

    The map id

    1–64 characters

  • nodeIdstringrequired

    The 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.