Skip to content

API reference

Briefs

Briefs endpoints of the SemanticsOn REST API.

List content briefs

GET/projects/{projectId}/briefs

Briefs without their data (fetch a single brief for the full content).

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

  • statusstringoptional

    One of: draft, approved, in_writing, done

  • nodeIdstringoptional

    at most 64 characters

  • searchstringoptional

    at most 200 characters

curl https://semanticson.com/api/v1/projects/PROJECT_ID/briefs \
  -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.

Create a content brief

POST/projects/{projectId}/briefs

data is the brief's content as free-form JSON. The dashboard and exports understand these keys: titleOptions (string[]), audience, angle, outline ([{ level 1–4, text, note }]), entities ([{ name, attributes[] }]), terms (string[]), questions (string[]), metaTitle, metaDescription, notes. Other keys are kept and shown as extra sections.

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • projectIdstringrequired

Request body

  • titlestringrequired

    1–200 characters

  • primaryKeywordstringoptional

    at most 200 characters · default ""

  • intentstringoptional

    at most 60 characters · default ""

  • statusstringoptional

    One of: draft, approved, in_writing, done

    default "draft"

  • nodeIdstring or nulloptional

    Topical map page this brief is for

    1–64 characters

  • dataobjectoptional

    data is the brief's content as free-form JSON. The dashboard and exports understand these keys: titleOptions (string[]), audience, angle, outline ([{ level 1–4, text, note }]), entities ([{ name, attributes[] }]), terms (string[]), questions (string[]), metaTitle, metaDescription, notes. Other keys are kept and shown as extra sections.

    default {}

curl -X POST https://semanticson.com/api/v1/projects/PROJECT_ID/briefs \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Espresso grind size: the complete chart",
  "primaryKeyword": "espresso grind size",
  "intent": "informational",
  "data": {
    "audience": "Home baristas",
    "outline": [
      {
        "level": 2,
        "text": "Why grind size matters",
        "note": ""
      }
    ],
    "questions": [
      "How fine should espresso be ground?"
    ]
  }
}'

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.

Get a content brief

GET/briefs/{briefId}

data is the brief's content as free-form JSON. The dashboard and exports understand these keys: titleOptions (string[]), audience, angle, outline ([{ level 1–4, text, note }]), entities ([{ name, attributes[] }]), terms (string[]), questions (string[]), metaTitle, metaDescription, notes. Other keys are kept and shown as extra sections.

Path parameters

  • briefIdstringrequired

    The brief id

    1–64 characters

curl https://semanticson.com/api/v1/briefs/BRIEF_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.

Update a content brief

PATCH/briefs/{briefId}

Send only the fields to change. data replaces the whole JSON object. data is the brief's content as free-form JSON. The dashboard and exports understand these keys: titleOptions (string[]), audience, angle, outline ([{ level 1–4, text, note }]), entities ([{ name, attributes[] }]), terms (string[]), questions (string[]), metaTitle, metaDescription, notes. Other keys are kept and shown as extra sections.

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • briefIdstringrequired

    The brief id

    1–64 characters

Request body

  • titlestringoptional

    1–200 characters

  • primaryKeywordstringoptional

    at most 200 characters

  • intentstringoptional

    at most 60 characters

  • statusstringoptional

    One of: draft, approved, in_writing, done

  • nodeIdstring or nulloptional

    Topical map page this brief is for

    1–64 characters

  • dataobjectoptional

    data is the brief's content as free-form JSON. The dashboard and exports understand these keys: titleOptions (string[]), audience, angle, outline ([{ level 1–4, text, note }]), entities ([{ name, attributes[] }]), terms (string[]), questions (string[]), metaTitle, metaDescription, notes. Other keys are kept and shown as extra sections.

curl -X PATCH https://semanticson.com/api/v1/briefs/BRIEF_ID \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "approved",
  "data": {
    "audience": "Home baristas",
    "angle": "Dial in faster with a single chart"
  }
}'

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 content brief

DELETE/briefs/{briefId}

Documents written from the brief are kept (unlinked).

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • briefIdstringrequired

    The brief id

    1–64 characters

curl -X DELETE https://semanticson.com/api/v1/briefs/BRIEF_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.

Download a content brief

GET/briefs/{briefId}/export

Returns the file itself (content-disposition: attachment), not JSON. Formats not included in your plan return 402 export_not_in_plan.

Path parameters

  • briefIdstringrequired

    The brief id

    1–64 characters

Query parameters

  • formatstringrequired

    File format: csv, json, md, html, xlsx, pdf, docx. Available formats depend on your plan (plan.features.exports in GET /me).

    One of: csv, json, md, html, xlsx, pdf, docx

curl https://semanticson.com/api/v1/briefs/BRIEF_ID/export \
  -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.