Skip to content

Authentication

Every request is authenticated with an API key sent as a Bearer token. There are two kinds of key: account keys for your own scripts and integrations, and site keys that belong to one connected website.

Sending the key

Send the key in the Authorization header of every request. Keys in query strings or bodies are not accepted.

curl https://semanticson.com/api/v1/me \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY"

A missing header returns 401 unauthorized; an unknown or revoked key returns 401 invalid_api_key. Use GET /me to check which account, key, scopes and plan a key resolves to.

Account keys and site keys

Account keySite key
Prefixso_live_so_site_
Acts forYour account, in every project you can access, within the key's scopesOne connected website, confined to that website's project
Created inDashboard → API SettingsOne-click connect from the plugin, POST /sites, or “Rotate key” on the website in Connected Sites
ScopesChosen when the key is created (preset or custom)Fixed: see below
Rate limit60 requests per minute120 requests per minute
Monthly allowanceCounts towards the plan's API requests per monthNot counted
PlanPlan must include API accessEvery plan, up to its connected-website limit

Account keys

Create them in the dashboard under API Settings → SemanticsOn API keys. Give each key a name that says where it is used, choose its scopes, and copy the key straight away: it is shown only once and stored only as a hash. Revoking a key takes effect on the next request.

Site keys

A site key is issued when a website is connected and identifies that website. The official WordPress plugin stores it for you. If you build your own integration, store it as a secret on the website's server. Issuing a new site key (rotate) revokes the old one immediately, and disconnecting the website revokes its key. Endpoints under /site accept only site keys; see the site protocol.

Scopes

An account key can call an endpoint only if it holds every scope the endpoint lists in the reference. A missing scope returns 403 insufficient_scope with the missing scopes in details.missing. Keys created before scopes existed have no scopes stored and keep full access.

ScopeAllows
projects:readList and read projects
projects:writeCreate, update and delete projects
content:readRead topical maps, keywords, clusters, briefs, documents and entities
content:writeCreate, update and delete topical maps, keywords, clusters, briefs, documents and entities
tools:runRun tools and read their results
audits:readRead SEO audits, issues and audit schedules
audits:writeStart and schedule audits, and mark issues fixed or ignored
reports:readRead and download reports
reports:writeCreate, update and delete reports
sites:readRead connected websites, their synced pages and proposed changes
sites:writeConnect websites and propose changes to them
changes:approveApprove, reject and undo changes to connected websites
webhooks:readRead webhooks and their delivery log
webhooks:writeCreate, update, delete, test and retry webhooks
usage:readRead plan limits and API usage

Approving changes is a separate permission

changes:approve lets a key approve, reject and undo changes on connected websites. Only the Full access preset includes it. Keep it out of keys used by automation that proposes changes, so a person always makes the decision.

Presets

Presets are the standard combinations of scopes for a new key. Pick the narrowest one that does the job.

Full access

Everything, including approving changes to connected websites.

projects:readprojects:writecontent:readcontent:writetools:runaudits:readaudits:writereports:readreports:writesites:readsites:writechanges:approvewebhooks:readwebhooks:writeusage:read

Read only

Read every resource; cannot change anything or run tools.

projects:readcontent:readaudits:readreports:readsites:readwebhooks:readusage:read

Content & tools

Manage maps, keywords, briefs and documents, and run tools.

projects:readcontent:readcontent:writetools:runaudits:readreports:readusage:read

Websites (propose only)

Connect websites, propose changes and run audits. Cannot approve changes.

projects:readcontent:readsites:readsites:writeaudits:readaudits:writetools:runusage:read

What site keys can do

Besides the site protocol endpoints, a site key can call general endpoints that need only these scopes, always limited to its website's project:

projects:readcontent:readtools:runaudits:readaudits:writereports:readsites:read

That covers reading the project and its content, running tools, running audits and marking issues, and reading reports. Site keys cannot propose changes through /sites/…/changes, connect other websites, manage webhooks or approve through /changes/…/approve. Approval from a website goes through POST /site/changes/{changeId}/approve, which the plugin calls only when a person clicks Approve.

Plan requirements

  • Account keys need a plan that includes API access. Without it, requests return 403 api_access_not_in_plan. Requests count towards the plan's monthly API allowance; see rate limits.
  • Connected websites are available on every plan, limited in number per plan. Site key requests do not count towards the monthly API allowance. If an account has more websites than its plan includes (after a downgrade), the oldest keep working and the newest return 403 site_limit_exceeded.
  • Tool runs through the API use the same plan limits, tool access and AI allowance as the dashboard.

Current limits for your account are in plan.limits of GET /me, and on the pricing page.

Keeping keys safe

  • Keep keys on servers. Never put a key in browser JavaScript, a mobile app, or a public repository: anyone who has it can act within its scopes.
  • Use one key per integration with the fewest scopes it needs, so you can revoke one without breaking the others.
  • Store keys in environment variables or a secrets manager. In WordPress, define them in wp-config.php or store them encrypted, not in plain options.
  • Revoke a key you suspect has leaked in API Settings and create a new one. For site keys, rotate the key on the website in Connected Sites.
  • Check lastUsedAt in API Settings and per-key request counts from GET /usage to spot keys that are used unexpectedly.