Skip to content

API reference

Projects

Projects hold everything else: keywords, maps, briefs, audits and connected websites.

List projects

GET/projects

Projects in every workspace you are a member of. A site key only sees its own project.

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: active, archived, all

    default "active"

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

Get a project

GET/projects/{projectId}

Path parameters

  • projectIdstringrequired
Response fields Show 15 fields
  • object"project"
  • idstring
  • namestring
  • domainstring
  • descriptionstring
  • industrystring
  • centralEntitystring
  • targetAudiencestring
  • countrystring
  • languagestring
  • notesstring
  • statusstring

    One of: active, archived

  • createdAtstring
  • updatedAtstring
  • competitorsarray of objects
  • competitors[].domainstring
  • competitors[].labelstring
curl https://semanticson.com/api/v1/projects/PROJECT_ID \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY"

Response · 200 OK

A JSON object with the fields listed under Response fields.

Errors use the standard error object.

Create a project

POST/projects

Creates a project in your own workspace. Counts towards your plan's active-project limit (402 project_limit when it is reached). Fires the project.created webhook.

Accepts an Idempotency-Key header for safe retries.

Request body

  • namestringrequired

    1–120 characters

  • domainstringrequired

    1–253 characters

  • descriptionstringoptional

    at most 2,000 characters · default ""

  • industrystringoptional

    at most 160 characters · default ""

  • centralEntitystringoptional

    at most 160 characters · default ""

  • targetAudiencestringoptional

    at most 500 characters · default ""

  • countrystringoptional

    Two-letter country code, e.g. US, GB, DE

    default "US"

  • languagestringoptional

    Language code, e.g. en, de, es

    default "en"

  • notesstringoptional

    at most 5,000 characters · default ""

  • competitorsarray of string or objectsoptional

    Competitor domains (at most 10): plain strings or { domain, label } objects. The project's own domain and duplicates are ignored.

    at most 10 items · default []

Response fields Show 15 fields
  • object"project"
  • idstring
  • namestring
  • domainstring
  • descriptionstring
  • industrystring
  • centralEntitystring
  • targetAudiencestring
  • countrystring
  • languagestring
  • notesstring
  • statusstring

    One of: active, archived

  • createdAtstring
  • updatedAtstring
  • competitorsarray of objects
  • competitors[].domainstring
  • competitors[].labelstring
curl -X POST https://semanticson.com/api/v1/projects \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Espresso Lab",
  "domain": "espressolab.example",
  "industry": "Coffee equipment",
  "centralEntity": "Espresso",
  "country": "US",
  "language": "en",
  "competitors": [
    "baristahustle.com",
    {
      "domain": "seriouseats.com",
      "label": "Serious Eats"
    }
  ]
}'

Response · 201 Created

A JSON object with the fields listed under Response fields.

Errors use the standard error object.

Update a project

PATCH/projects/{projectId}

Send only the fields to change. status: "archived" archives the project (content becomes read-only); "active" restores it, which counts towards the workspace owner's active-project limit again. competitors replaces the whole list.

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • projectIdstringrequired

Request body

  • namestringoptional

    1–120 characters

  • domainstringoptional

    1–253 characters

  • descriptionstringoptional

    at most 2,000 characters

  • industrystringoptional

    at most 160 characters

  • centralEntitystringoptional

    at most 160 characters

  • targetAudiencestringoptional

    at most 500 characters

  • countrystringoptional

    Two-letter country code, e.g. US, GB, DE

  • languagestringoptional

    Language code, e.g. en, de, es

  • notesstringoptional

    at most 5,000 characters

  • statusstringoptional

    One of: active, archived

  • competitorsarray of string or objectsoptional

    Competitor domains (at most 10): plain strings or { domain, label } objects. The project's own domain and duplicates are ignored.

    at most 10 items

Response fields Show 15 fields
  • object"project"
  • idstring
  • namestring
  • domainstring
  • descriptionstring
  • industrystring
  • centralEntitystring
  • targetAudiencestring
  • countrystring
  • languagestring
  • notesstring
  • statusstring

    One of: active, archived

  • createdAtstring
  • updatedAtstring
  • competitorsarray of objects
  • competitors[].domainstring
  • competitors[].labelstring
curl -X PATCH https://semanticson.com/api/v1/projects/PROJECT_ID \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "targetAudience": "Home baristas upgrading their first machine",
  "competitors": [
    "baristahustle.com"
  ],
  "status": "active"
}'

Response · 200 OK

A JSON object with the fields listed under Response fields.

Errors use the standard error object.

Delete a project

DELETE/projects/{projectId}

Permanently deletes the project and everything in it (maps, keywords, briefs, entities, audits, connected sites). Only workspace owners and admins can delete, and only on plans that include project deletion (archiveProjects); otherwise archive it with PATCH instead.

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • projectIdstringrequired
curl -X DELETE https://semanticson.com/api/v1/projects/PROJECT_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.