Skip to content

API reference

Reports

Reports endpoints of the SemanticsOn REST API.

List reports

GET/projects/{projectId}/reports

Your reports for the project (reports are private to the account that generated them), with section titles and summaries.

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/reports \
  -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.

Generate a report

POST/projects/{projectId}/reports

Builds a report from real project data (sections) and from your own successful tool runs in this project (executionIds, in the order given). findings adds an overview of every section's summary at the top. Generated sections (sections): project-info — Domain, market, central entity and what has been saved to the project. topical-map — Pillars, clusters and coverage status of the latest topical map. keyword-clusters — Clusters with intent, page type and keyword counts. content-briefs — Briefs in the project and their status. entity-coverage — Entities saved to the project and how many attributes each has. technical-audit — Issues from the most recent crawl-based audit. internal-linking — The latest successful internal linking run. competitors — The latest successful competitor or SERP run. findings — A list of every included section's summary, placed first in the report. Sections without data in the project are skipped. brandId (a white-label brand profile) requires a plan with white-label reports. Fires the report.ready webhook.

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • projectIdstringrequired

Request body

  • titlestringrequired

    1–200 characters

  • sectionsarray of stringsoptional

    at most 20 items · default []

  • executionIdsarray of stringsoptional

    at most 40 items · default []

  • brandIdstring or nulloptional

    1–64 characters

curl -X POST https://semanticson.com/api/v1/projects/PROJECT_ID/reports \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "November SEO report",
  "sections": [
    "findings",
    "project-info",
    "topical-map",
    "keyword-clusters"
  ],
  "executionIds": [
    "cm1exec…"
  ]
}'

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 report

GET/reports/{reportId}

The report with every section's summary, result blocks, data and sources.

Path parameters

  • reportIdstringrequired

    The report id

    1–64 characters

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

Rename, reorder or remove sections

PATCH/reports/{reportId}

order lists the current section index values in the new order; sections left out are removed (at least one must remain). brandId sets the default white-label branding for exports (null removes it; requires a plan with white-label reports).

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • reportIdstringrequired

    The report id

    1–64 characters

Request body

  • titlestringoptional

    1–200 characters

  • orderarray of integersoptional

    1–200 items

  • brandIdstring or nulloptional

    1–64 characters

curl -X PATCH https://semanticson.com/api/v1/reports/REPORT_ID \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "November SEO report (final)",
  "order": [
    0,
    2,
    1
  ]
}'

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 report

DELETE/reports/{reportId}

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • reportIdstringrequired

    The report id

    1–64 characters

curl -X DELETE https://semanticson.com/api/v1/reports/REPORT_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 report

GET/reports/{reportId}/export

Returns the file itself (content-disposition: attachment), not JSON. Formats not included in your plan return 402 export_not_in_plan. Branding: brandId picks one of your white-label brand profiles (403 white_label_not_in_plan without the plan feature), brandId=default forces the standard branding, and without it the report's saved brand is used when your plan allows white-label.

Path parameters

  • reportIdstringrequired

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

  • brandIdstringoptional

    at most 64 characters

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