Skip to content

API reference

Site protocol

Endpoints a connected website calls with its site key. Read the site protocol guide for the order of calls.

Building an integration? Start with the site protocol guide.

Site keySite key only

The connected site, its project, sync settings and plan limits. The plugin calls this when it starts a sync.

curl https://semanticson.com/api/v1/site \
  -H "Authorization: Bearer $SEMANTICSON_SITE_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.

Disconnect this site

POST/site/disconnect
Site keySite key only

Called when the site owner disconnects from the site's admin. Revokes this site key, cancels changes waiting for approval and frees the plan's website slot. Synced pages and history are kept; reconnecting starts a new connection.

Accepts an Idempotency-Key header for safe retries.

No request body. Send an empty body or {}.

curl -X POST https://semanticson.com/api/v1/site/disconnect \
  -H "Authorization: Bearer $SEMANTICSON_SITE_KEY"

Response · 204 No Content

Success returns an empty body (204) or a small confirmation object.

Errors use the standard error object.

Report site details

POST/site/heartbeat
Site keySite key only

Tells SemanticsOn which versions the site runs and which kinds of change it can apply.

Accepts an Idempotency-Key header for safe retries.

Request body

  • pluginVersionstringoptional

    at most 40 characters

  • platformVersionstringoptional

    at most 40 characters

  • phpVersionstringoptional

    at most 40 characters

  • seoPluginstringoptional

    One of: yoast, rankmath, seopress, aioseo, ranklooks, none

  • capabilitiesarray of stringsoptional

    Known capabilities: posts, meta, schema, redirects, links, noindex, delete, terms, media, social, products. Unknown values are ignored.

    at most 50 items

  • siteNamestringoptional

    at most 120 characters

  • approvalInstringoptional

    Where changes may be approved: wordpress (only in the site's admin, default) or both (also in SemanticsOn and the API). Only the site sets this.

    One of: wordpress, both

curl -X POST https://semanticson.com/api/v1/site/heartbeat \
  -H "Authorization: Bearer $SEMANTICSON_SITE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "pluginVersion": "1.1.0",
  "platformVersion": "6.8",
  "phpVersion": "8.2",
  "seoPlugin": "yoast",
  "capabilities": [
    "posts",
    "meta",
    "schema",
    "redirects",
    "links",
    "noindex",
    "delete",
    "terms",
    "media",
    "social",
    "products"
  ],
  "siteName": "Example blog",
  "approvalIn": "wordpress"
}'

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.

Start a full sync

POST/site/sync
Site keySite key only

Returns a syncId. Send every page (POST /site/pages), redirect (POST /site/redirects), term (POST /site/terms) and media item (POST /site/media) in batches, then call POST /site/sync/{syncId}/finish: items not sent during the sync are removed — but only from collections the site sent at least one batch of during this sync (an empty batch counts). Pages are always cleaned up.

Accepts an Idempotency-Key header for safe retries.

No request body. Send an empty body or {}.

curl -X POST https://semanticson.com/api/v1/site/sync \
  -H "Authorization: Bearer $SEMANTICSON_SITE_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.

Send pages

POST/site/pages
Site keySite key only

Creates or updates up to 100 pages (any post type, including product). Use it for full syncs (in batches) and whenever a post is saved. Panel fields (content, excerpt, focusKeyword, social fields, categories, tags, terms, featuredImage, jsonld, product, …) are left unchanged when omitted.

Accepts an Idempotency-Key header for safe retries.

Request body

  • pagesarray of objectsrequired

    1–100 items

  • pages[].externalIdstringrequired

    1–64 characters

  • pages[].typestringrequired

    1–40 characters

  • pages[].statusstringrequired

    1–20 characters

  • pages[].urlstringrequired

    1–2,000 characters

  • pages[].titlestringoptional

    at most 1,000 characters · default ""

  • pages[].slugstringoptional

    at most 500 characters · default ""

  • pages[].metaTitlestringoptional

    at most 1,000 characters · default ""

  • pages[].metaDescriptionstringoptional

    at most 2,000 characters · default ""

  • pages[].noindexbooleanoptional

    default false

  • pages[].canonicalstringoptional

    at most 2,000 characters · default ""

  • pages[].h1array of stringsoptional

    at most 20 items · default []

  • pages[].headingsarray of objectsoptional

    at most 300 items · default []

  • pages[].headings[].levelintegerrequired

    1–6

  • pages[].headings[].textstringrequired

    at most 500 characters

  • pages[].internalLinksarray of objectsoptional

    at most 2,000 items · default []

  • pages[].internalLinks[].hrefstringrequired

    at most 2,000 characters

  • pages[].internalLinks[].textstringoptional

    at most 500 characters · default ""

  • pages[].internalLinks[].targetIdstring or nulloptional

    at most 64 characters

  • pages[].externalLinkCountintegeroptional

    0–9,007,199,254,740,991 · default 0

  • pages[].imageCountintegeroptional

    0–9,007,199,254,740,991 · default 0

  • pages[].imagesWithoutAltintegeroptional

    0–9,007,199,254,740,991 · default 0

  • pages[].schemaTypesarray of stringsoptional

    at most 50 items · default []

  • pages[].wordCountintegeroptional

    0–9,007,199,254,740,991 · default 0

  • pages[].textstringoptional

    at most 200,000 characters · default ""

  • pages[].authorstringoptional

    at most 200 characters · default ""

  • pages[].publishedAtany or nulloptional
  • pages[].modifiedAtany or nulloptional
  • pages[].contentHashstringoptional

    at most 100 characters · default ""

  • pages[].contentstringoptional

    Raw post content (HTML) the panel editor loads

    at most 1,000,000 characters

  • pages[].excerptstringoptional

    at most 10,000 characters

  • pages[].focusKeywordstringoptional

    at most 500 characters

  • pages[].nofollowbooleanoptional
  • pages[].ogTitlestringoptional

    at most 1,000 characters

  • pages[].ogDescriptionstringoptional

    at most 2,000 characters

  • pages[].ogImagestringoptional

    at most 2,000 characters

  • pages[].twitterTitlestringoptional

    at most 1,000 characters

  • pages[].twitterDescriptionstringoptional

    at most 2,000 characters

  • pages[].categoriesarray of objectsoptional

    at most 500 items

  • pages[].categories[].idstringrequired

    at most 64 characters

  • pages[].categories[].namestringoptional

    at most 200 characters · default ""

  • pages[].tagsarray of objectsoptional

    at most 1,000 items

  • pages[].tags[].idstringrequired

    at most 64 characters

  • pages[].tags[].namestringoptional

    at most 200 characters · default ""

  • pages[].termsobjectoptional

    Every taxonomy: { [taxonomy]: [{ id, name }] }

  • pages[].featuredImageobject or nulloptional
  • pages[].featuredImage.mediaIdstring or nulloptional

    at most 64 characters

  • pages[].featuredImage.urlstringoptional

    at most 2,000 characters · default ""

  • pages[].featuredImage.altstringoptional

    at most 1,000 characters · default ""

  • pages[].seoPluginstringoptional

    at most 40 characters

  • pages[].editUrlstringoptional

    at most 2,000 characters

  • pages[].jsonldany or nulloptional
  • pages[].resolvedTitlestringoptional

    at most 1,000 characters

  • pages[].resolvedDescriptionstringoptional

    at most 2,000 characters

  • pages[].productobject or nulloptional
  • pages[].product.productTypestringoptional

    at most 40 characters

  • pages[].product.skustringoptional

    at most 200 characters

  • pages[].product.regularPricestringoptional

    at most 40 characters

  • pages[].product.salePricestringoptional

    at most 40 characters

  • pages[].product.saleFromstring or nulloptional

    at most 40 characters

  • pages[].product.saleTostring or nulloptional

    at most 40 characters

  • pages[].product.currencystringoptional

    at most 10 characters

  • pages[].product.stockStatusstringoptional

    at most 40 characters

  • pages[].product.manageStockbooleanoptional
  • pages[].product.stockQuantityinteger or nulloptional

    -9,007,199,254,740,991–9,007,199,254,740,991

  • pages[].product.weightstringoptional

    at most 40 characters

  • pages[].product.lengthstringoptional

    at most 40 characters

  • pages[].product.widthstringoptional

    at most 40 characters

  • pages[].product.heightstringoptional

    at most 40 characters

  • pages[].product.shortDescriptionstringoptional

    at most 100,000 characters

  • pages[].product.galleryImagesarray of objectsoptional

    at most 100 items

  • pages[].product.galleryImages[].mediaIdstring or nulloptional

    at most 64 characters

  • pages[].product.galleryImages[].urlstringoptional

    at most 2,000 characters · default ""

  • pages[].product.galleryImages[].altstringoptional

    at most 1,000 characters · default ""

  • pages[].product.externalUrlstringoptional

    at most 2,000 characters

  • pages[].product.buttonTextstringoptional

    at most 200 characters

  • pages[].product.featuredbooleanoptional
  • pages[].product.catalogVisibilitystringoptional

    at most 40 characters

  • pages[].product.attributesarray of objectsoptional

    at most 100 items

  • pages[].product.attributes[].namestringrequired

    at most 200 characters

  • pages[].product.attributes[].optionsarray of stringsoptional

    at most 500 items · default []

  • pages[].product.attributes[].visiblebooleanoptional

    default true

  • pages[].product.attributes[].variationbooleanoptional

    default false

  • pages[].product.variationsarray of objectsoptional

    at most 1,000 items

  • pages[].product.variations[].variationIdstringrequired

    1–64 characters

  • pages[].product.variations[].skustringoptional

    at most 200 characters · default ""

  • pages[].product.variations[].attributesobjectoptional

    default {}

  • pages[].product.variations[].regularPricestringoptional

    at most 40 characters · default ""

  • pages[].product.variations[].salePricestringoptional

    at most 40 characters · default ""

  • pages[].product.variations[].stockStatusstringoptional

    at most 40 characters · default ""

  • pages[].product.variations[].stockQuantityinteger or nulloptional

    -9,007,199,254,740,991–9,007,199,254,740,991

  • pages[].product.variations[].manageStockbooleanoptional
  • pages[].product.variations[].imageIdstring or nulloptional

    at most 64 characters

curl -X POST https://semanticson.com/api/v1/site/pages \
  -H "Authorization: Bearer $SEMANTICSON_SITE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "pages": [
    {
      "externalId": "42",
      "type": "post",
      "status": "publish",
      "url": "https://example.com/espresso-guide",
      "title": "Espresso guide",
      "slug": "espresso-guide",
      "metaTitle": "Espresso guide — Example",
      "metaDescription": "How to pull a balanced shot.",
      "noindex": false,
      "h1": [],
      "headings": [
        {
          "level": 2,
          "text": "Grind size"
        }
      ],
      "internalLinks": [
        {
          "href": "https://example.com/grinders",
          "text": "grinders",
          "targetId": "17"
        }
      ],
      "externalLinkCount": 2,
      "imageCount": 3,
      "imagesWithoutAlt": 0,
      "schemaTypes": [
        "Article"
      ],
      "wordCount": 1200,
      "text": "Plain text of the post…",
      "author": "Jane",
      "publishedAt": "2026-10-01T09:00:00Z",
      "modifiedAt": "2026-11-20T10:15:00Z",
      "contentHash": "5d41402abc4b2a76b9719d911017c592",
      "content": "<p>Plain text of the post…</p>",
      "excerpt": "",
      "focusKeyword": "espresso guide",
      "nofollow": false,
      "ogTitle": "",
      "ogDescription": "",
      "ogImage": "",
      "twitterTitle": "",
      "twitterDescription": "",
      "categories": [
        {
          "id": "3",
          "name": "Coffee"
        }
      ],
      "tags": [
        {
          "id": "8",
          "name": "espresso"
        }
      ],
      "terms": {
        "category": [
          {
            "id": "3",
            "name": "Coffee"
          }
        ],
        "post_tag": [
          {
            "id": "8",
            "name": "espresso"
          }
        ]
      },
      "featuredImage": {
        "mediaId": "77",
        "url": "https://example.com/wp-content/uploads/shot.jpg",
        "alt": "Espresso shot"
      },
      "seoPlugin": "yoast",
      "editUrl": "https://example.com/wp-admin/post.php?post=42&action=edit",
      "jsonld": null,
      "resolvedTitle": "Espresso guide — Example",
      "resolvedDescription": "How to pull a balanced shot.",
      "product": null
    }
  ]
}'

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.

Send redirects

POST/site/redirects
Site keySite key only

Creates or updates up to 500 redirects. Use it for full syncs (in batches; send { "redirects": [] } when the site has none so stale ones are removed) and after any redirect change.

Accepts an Idempotency-Key header for safe retries.

Request body

  • redirectsarray of objectsrequired

    at most 500 items

  • redirects[].redirectIdstringrequired

    1–64 characters

  • redirects[].fromstringrequired

    1–2,000 characters

  • redirects[].tostringoptional

    at most 2,000 characters · default ""

  • redirects[].codeintegeroptional

    300–599 · default 301

  • redirects[].hitsintegeroptional

    0–9,007,199,254,740,991 · default 0

  • redirects[].lastHitAtany or nulloptional
  • redirects[].sourcestringoptional

    One of: semanticson, manual

    default "manual"

curl -X POST https://semanticson.com/api/v1/site/redirects \
  -H "Authorization: Bearer $SEMANTICSON_SITE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "redirects": [
    {
      "redirectId": "r_12",
      "from": "/old-espresso",
      "to": "https://example.com/espresso-guide",
      "code": 301,
      "hits": 14,
      "lastHitAt": "2026-11-28T08:00:00Z",
      "source": "semanticson"
    }
  ]
}'

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.

Site keySite key only

Creates or updates up to 500 terms of any public taxonomy (category, post_tag, product_cat, custom ones).

Accepts an Idempotency-Key header for safe retries.

Request body

  • termsarray of objectsrequired

    at most 500 items

  • terms[].termIdstringrequired

    1–64 characters

  • terms[].taxonomystringrequired

    1–64 characters · pattern ^[A-Za-z0-9_-]+$

  • terms[].namestringoptional

    at most 500 characters · default ""

  • terms[].slugstringoptional

    at most 500 characters · default ""

  • terms[].descriptionstringoptional

    at most 20,000 characters · default ""

  • terms[].parentIdstring or nulloptional

    at most 64 characters

  • terms[].countintegeroptional

    0–9,007,199,254,740,991 · default 0

  • terms[].urlstringoptional

    at most 2,000 characters · default ""

  • terms[].metaTitlestringoptional

    at most 1,000 characters · default ""

  • terms[].metaDescriptionstringoptional

    at most 2,000 characters · default ""

  • terms[].noindexbooleanoptional

    default false

curl -X POST https://semanticson.com/api/v1/site/terms \
  -H "Authorization: Bearer $SEMANTICSON_SITE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "terms": [
    {
      "termId": "3",
      "taxonomy": "category",
      "name": "Coffee",
      "slug": "coffee",
      "description": "",
      "parentId": null,
      "count": 12,
      "url": "https://example.com/category/coffee",
      "metaTitle": "",
      "metaDescription": "",
      "noindex": false
    }
  ]
}'

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.

Site keySite key only

Creates or updates up to 200 media items (attachments).

Accepts an Idempotency-Key header for safe retries.

Request body

  • mediaarray of objectsrequired

    at most 200 items

  • media[].mediaIdstringrequired

    1–64 characters

  • media[].urlstringrequired

    1–2,000 characters

  • media[].titlestringoptional

    at most 1,000 characters · default ""

  • media[].altstringoptional

    at most 2,000 characters · default ""

  • media[].captionstringoptional

    at most 5,000 characters · default ""

  • media[].descriptionstringoptional

    at most 20,000 characters

  • media[].mimeTypestringoptional

    at most 200 characters · default ""

  • media[].widthinteger or nulloptional

    0–9,007,199,254,740,991

  • media[].heightinteger or nulloptional

    0–9,007,199,254,740,991

  • media[].filesizeinteger or nulloptional

    0–9,007,199,254,740,991

  • media[].attachedTostring or nulloptional

    at most 64 characters

  • media[].createdAtany or nulloptional
curl -X POST https://semanticson.com/api/v1/site/media \
  -H "Authorization: Bearer $SEMANTICSON_SITE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "media": [
    {
      "mediaId": "77",
      "url": "https://example.com/wp-content/uploads/shot.jpg",
      "title": "Espresso shot",
      "alt": "",
      "caption": "",
      "mimeType": "image/jpeg",
      "width": 1600,
      "height": 1067,
      "filesize": 182044,
      "attachedTo": "42",
      "createdAt": "2026-10-01T09:00:00Z"
    }
  ]
}'

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.

Finish a full sync

POST/site/sync/{syncId}/finish
Site keySite key only

Removes items not sent since syncId from every collection the site sent during this sync (pages always). Returns removed/pageCount for pages and per-collection collections (null = collection not sent, left untouched).

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • syncIdstringrequired

    at most 40 characters

No request body. Send an empty body or {}.

curl -X POST https://semanticson.com/api/v1/site/sync/SYNC_ID/finish \
  -H "Authorization: Bearer $SEMANTICSON_SITE_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.

Remove a page

DELETE/site/pages/{externalId}
Site keySite key only

Call when a post is deleted or trashed.

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • externalIdstringrequired

    at most 64 characters

curl -X DELETE https://semanticson.com/api/v1/site/pages/EXTERNAL_ID \
  -H "Authorization: Bearer $SEMANTICSON_SITE_KEY"

Response · 204 No Content or 200 OK

Success returns an empty body (204) or a small confirmation object.

Errors use the standard error object.

Remove a redirect

DELETE/site/redirects/{redirectId}
Site keySite key only

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • redirectIdstringrequired

    at most 64 characters

curl -X DELETE https://semanticson.com/api/v1/site/redirects/REDIRECT_ID \
  -H "Authorization: Bearer $SEMANTICSON_SITE_KEY"

Response · 204 No Content or 200 OK

Success returns an empty body (204) or a small confirmation object.

Errors use the standard error object.

Remove a term

DELETE/site/terms/{taxonomy}/{termId}
Site keySite key only

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • taxonomystringrequired

    1–64 characters · pattern ^[A-Za-z0-9_-]+$

  • termIdstringrequired

    at most 64 characters

curl -X DELETE https://semanticson.com/api/v1/site/terms/TAXONOMY/TERM_ID \
  -H "Authorization: Bearer $SEMANTICSON_SITE_KEY"

Response · 204 No Content or 200 OK

Success returns an empty body (204) or a small confirmation object.

Errors use the standard error object.

Remove a media item

DELETE/site/media/{mediaId}
Site keySite key only

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • mediaIdstringrequired

    at most 64 characters

curl -X DELETE https://semanticson.com/api/v1/site/media/MEDIA_ID \
  -H "Authorization: Bearer $SEMANTICSON_SITE_KEY"

Response · 204 No Content or 200 OK

Success returns an empty body (204) or a small confirmation object.

Errors use the standard error object.

Changes for this site

GET/site/changes
Site keySite key only

pending changes to show for approval, approved changes to apply now, revert: applied changes whose undo is approved — undo them now, and revertRequested: undo requests waiting for approval in the site admin (revertNeedsApproval: true; approve with POST /site/changes/{id}/approve before undoing, or reject). Apply only approved changes.

Query parameters

  • includestringoptional

    Comma-separated: pending, approved, revert, revertRequested, history

    default "pending,approved,revert,revertRequested"

curl https://semanticson.com/api/v1/site/changes \
  -H "Authorization: Bearer $SEMANTICSON_SITE_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.

Approve a change from the site admin

POST/site/changes/{changeId}/approve
Site keySite key only

Call only when a person with permission clicks Approve in the site's admin. Never call it automatically. On a pending change it approves the change; on an applied change with revertNeedsApproval it approves the undo (then perform the undo and report /reverted).

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • changeIdstringrequired

Request body

  • actorobjectoptional

    The person in the site admin who made the decision (recorded in the activity log)

  • actor.namestringoptional

    at most 120 characters

  • actor.emailstringoptional

    at most 200 characters

curl -X POST https://semanticson.com/api/v1/site/changes/CHANGE_ID/approve \
  -H "Authorization: Bearer $SEMANTICSON_SITE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "actor": {
    "name": "Jane Admin",
    "email": "jane@example.com"
  }
}'

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.

Reject a change from the site admin

POST/site/changes/{changeId}/reject
Site keySite key only

On a pending change it rejects the change; on an applied change with revertNeedsApproval it rejects the undo request (the change stays applied and the reason is recorded in error).

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • changeIdstringrequired

Request body

  • actorobjectoptional

    The person in the site admin who made the decision (recorded in the activity log)

  • actor.namestringoptional

    at most 120 characters

  • actor.emailstringoptional

    at most 200 characters

  • reasonstringoptional

    at most 500 characters

curl -X POST https://semanticson.com/api/v1/site/changes/CHANGE_ID/reject \
  -H "Authorization: Bearer $SEMANTICSON_SITE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "actor": {
    "name": "Jane Admin"
  },
  "reason": "We keep the current title for now."
}'

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.

Report the outcome of applying a change

POST/site/changes/{changeId}/result
Site keySite key only

Send previous (the values before the change) so the change can be shown as a diff and undone later.

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • changeIdstringrequired

Request body

  • statusstringrequired

    One of: applied, failed

  • previousobjectoptional
  • resultobjectoptional
  • errorstringoptional

    at most 1,000 characters

curl -X POST https://semanticson.com/api/v1/site/changes/CHANGE_ID/result \
  -H "Authorization: Bearer $SEMANTICSON_SITE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "applied",
  "previous": {
    "metaDescription": "Old description"
  },
  "result": {
    "postId": 42,
    "editUrl": "https://example.com/wp-admin/post.php?post=42&action=edit",
    "permalink": "https://example.com/espresso-guide"
  }
}'

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.

Report that a change was undone

POST/site/changes/{changeId}/reverted
Site keySite key only

Call after restoring the previous values — either because a revert was requested, or because a person clicked Undo in the site admin.

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • changeIdstringrequired

Request body

  • okbooleanoptional

    default true

  • errorstringoptional

    at most 1,000 characters

  • resultobjectoptional

    What the undo produced, when it created something new — e.g. { termId } after recreating a deleted term

  • actorobjectoptional

    The person in the site admin who made the decision (recorded in the activity log)

  • actor.namestringoptional

    at most 120 characters

  • actor.emailstringoptional

    at most 200 characters

curl -X POST https://semanticson.com/api/v1/site/changes/CHANGE_ID/reverted \
  -H "Authorization: Bearer $SEMANTICSON_SITE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "ok": true,
  "actor": {
    "name": "Jane Admin"
  }
}'

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.

Everything SemanticsOn knows about one page

GET/site/pages/{externalId}/insights
Site keySite key only

Open audit issues, changes waiting for approval, the content brief and keywords mapped to this page. Used by the plugin's editor sidebar.

Path parameters

  • externalIdstringrequired

    at most 64 characters

curl https://semanticson.com/api/v1/site/pages/EXTERNAL_ID/insights \
  -H "Authorization: Bearer $SEMANTICSON_SITE_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.

No API key

Last step of one-click connect. After the person approves the connection in SemanticsOn, the browser returns to the site with code; the site sends it here with the PKCE codeVerifier it generated and receives its site key and nudge secret. The code is single-use and expires after 10 minutes.

Request body

  • codestringrequired

    10–200 characters

  • codeVerifierstringrequired

    43–128 characters

  • siteUrlstringrequired

    4–500 characters

curl -X POST https://semanticson.com/api/v1/connect/exchange \
  -H "Content-Type: application/json" \
  -d '{
  "code": "sco_3f9a…",
  "codeVerifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk",
  "siteUrl": "https://example.com"
}'

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.