API reference
Briefs
Briefs endpoints of the SemanticsOn REST API.
List content briefs
GET/projects/{projectId}/briefsBriefs without their data (fetch a single brief for the full content).
Path 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
statusstringoptionalOne of:
draft,approved,in_writing,donenodeIdstringoptionalat most 64 characters
searchstringoptionalat 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}/briefsdata 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
titlestringrequired1–200 characters
primaryKeywordstringoptionalat most 200 characters · default ""
intentstringoptionalat most 60 characters · default ""
statusstringoptionalOne of:
draft,approved,in_writing,donedefault "draft"
nodeIdstring or nulloptionalTopical map page this brief is for
1–64 characters
dataobjectoptionaldatais 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
briefIdstringrequiredThe 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
briefIdstringrequiredThe brief id
1–64 characters
Request body
titlestringoptional1–200 characters
primaryKeywordstringoptionalat most 200 characters
intentstringoptionalat most 60 characters
statusstringoptionalOne of:
draft,approved,in_writing,donenodeIdstring or nulloptionalTopical map page this brief is for
1–64 characters
dataobjectoptionaldatais 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
briefIdstringrequiredThe 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}/exportReturns the file itself (content-disposition: attachment), not JSON. Formats not included in your plan return 402 export_not_in_plan.
Path parameters
briefIdstringrequiredThe brief id
1–64 characters
Query parameters
formatstringrequiredFile format: csv, json, md, html, xlsx, pdf, docx. Available formats depend on your plan (
plan.features.exportsin 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.