Documentation
APIAPI reference

Token

Inspect the API key used for the request and check which scopes and sites it can access.

GET/api/v1/token

Inspect current token

Returns the API key used for this request: its team, scopes, and site restrictions.

ScopesAny valid key
Responses
POST/api/v1/token/check

Check token permissions

Checks whether the API key may use each scope, optionally for a specific site, and explains every denial. Use it to fail early before running a set of queries.

ScopesAny valid key
Request bodyapplication/json
checksobject[]required

Scopes to check. Add siteId to also check the key's site restriction.

1–100 items
scopestringrequired
≥ 1 chars
siteIdstring
≥ 1 chars
Responses