Skip to content

Tokens

GET /v1/access-tokens

List the API tokens that have been issued, without their secret values.

Scope: owner

POST /v1/access-tokens

Create an API token limited to chosen accounts and scopes. The secret token value is returned only in this response.

Scope: owner

Request body: TokenRequest

DELETE /v1/access-tokens/{id}

Revoke an API token so it stops working.

Scope: owner

ParameterInTypeDescription
id (required)pathstringToken ID.

GET /v1/tokens

List the API tokens that have been issued, without their secret values.

Scope: owner

POST /v1/tokens

Create an API token limited to chosen accounts and scopes. The secret token value is returned only in this response.

Scope: owner

Request body: TokenRequest

DELETE /v1/tokens/{id}

Revoke an API token so it stops working.

Scope: owner

ParameterInTypeDescription
id (required)pathstringToken ID.

Types

TokenRequest

Request to issue an API token.

FieldTypeDescription
accounts (required)array of stringAccount IDs the token can use, or * for every account.
expiresAtinteger, nullableUnix time in seconds when the token stops working. Omit it for no expiry.
name (required)stringA label for the token.
scopes (required)array of stringScopes the token grants: read, send, media, login, calls, admin and so on.