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
| Parameter | In | Type | Description |
|---|---|---|---|
id (required) | path | string | Token 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
| Parameter | In | Type | Description |
|---|---|---|---|
id (required) | path | string | Token ID. |
Types
TokenRequest
Request to issue an API token.
| Field | Type | Description |
|---|---|---|
accounts (required) | array of string | Account IDs the token can use, or * for every account. |
expiresAt | integer, nullable | Unix time in seconds when the token stops working. Omit it for no expiry. |
name (required) | string | A label for the token. |
scopes (required) | array of string | Scopes the token grants: read, send, media, login, calls, admin and so on. |