Get an API token and its access

Needs permission api-token:read.

One token, with both kinds of access it may hold, exactly as GET /users/{principalId} reports them for a person:

  • organisationIds — every organisation it reaches through a direct grant.
  • coversWholeCustomer — whether it also holds account-wide access, which reaches every organisation the account owns, including ones added later, and names none of them.

Read coversWholeCustomer before treating an empty organisationIds as no access. There are no roles: a credential either reaches an organisation or it does not, and one that reaches it may do everything in it.

token.callerAccess.granted says whether you can manage it. A token with account-wide access is only readable with account-wide access of your own (403 whole_customer_access_denied).

To change the direct grants, use /api-tokens/{clientId}/organisations; for account-wide access, /api-tokens/{clientId}/customer-access. No response from this endpoint contains a secret.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json