Scopes
Each key is granted one or more scopes. Requests signed with a key are limited to the actions its scopes allow.Grant the narrowest set of scopes a key needs. A read-only data key should not carry
trade:* or withdraw:* scopes.GET /accounts/api-keys
List the API keys belonging to the authenticated account.Authentication: Required (JWT only)
Response:
Status Codes:
200- Keys retrieved successfully401- Authentication failed403- Request was not authenticated with a JWT (forbidden_auth_method)
POST /accounts/api-keys
Create a new API key. The secret is returned only once, in this response — store it immediately; it cannot be retrieved later.Authentication: Required (JWT only)
Response (
201 Created):
Status Codes:
201- Key created successfully400- Invalid request body or invalid scope/parameter401- Authentication failed403- Request was not authenticated with a JWT (forbidden_auth_method)500- Internal server error
POST /accounts/api-keys/:id/revoke
Revoke an API key by itsid. Revocation is immediate and permanent; the key can no longer be used to sign requests.
Authentication: Required (JWT only)
Response:
200- Key revoked successfully401- Authentication failed403- Request was not authenticated with a JWT (forbidden_auth_method)404- Key not found or not owned by the authenticated account (api_key_not_found)