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 key | Site key | |
|---|---|---|
| Prefix | so_live_ | so_site_ |
| Acts for | Your account, in every project you can access, within the key's scopes | One connected website, confined to that website's project |
| Created in | Dashboard → API Settings | One-click connect from the plugin, POST /sites, or “Rotate key” on the website in Connected Sites |
| Scopes | Chosen when the key is created (preset or custom) | Fixed: see below |
| Rate limit | 60 requests per minute | 120 requests per minute |
| Monthly allowance | Counts towards the plan's API requests per month | Not counted |
| Plan | Plan must include API access | Every 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.
| Scope | Allows |
|---|---|
projects:read | List and read projects |
projects:write | Create, update and delete projects |
content:read | Read topical maps, keywords, clusters, briefs, documents and entities |
content:write | Create, update and delete topical maps, keywords, clusters, briefs, documents and entities |
tools:run | Run tools and read their results |
audits:read | Read SEO audits, issues and audit schedules |
audits:write | Start and schedule audits, and mark issues fixed or ignored |
reports:read | Read and download reports |
reports:write | Create, update and delete reports |
sites:read | Read connected websites, their synced pages and proposed changes |
sites:write | Connect websites and propose changes to them |
changes:approve | Approve, reject and undo changes to connected websites |
webhooks:read | Read webhooks and their delivery log |
webhooks:write | Create, update, delete, test and retry webhooks |
usage:read | Read 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.phpor 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
lastUsedAtin API Settings and per-key request counts fromGET /usageto spot keys that are used unexpectedly.