Skip to main content
API keys let you call authenticated endpoints from servers and scripts. You create and manage keys through these endpoints, then sign each request as described in Signing Requests With API Keys.
API key management endpoints require JWT authentication — obtain a JWT first via the Authentication Service API. You cannot manage API keys using API key headers; doing so returns 403 forbidden_auth_method.

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)
Query Parameters: Response:
Response Fields: Status Codes:
  • 200 - Keys retrieved successfully
  • 401 - Authentication failed
  • 403 - 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)
Request Body:
Request Parameters: Response (201 Created):
Response Fields:
Store the secret securely the moment you receive it. It is never returned again, and it must never be committed to version control or exposed in client-side code.
Status Codes:
  • 201 - Key created successfully
  • 400 - Invalid request body or invalid scope/parameter
  • 401 - Authentication failed
  • 403 - 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 its id. Revocation is immediate and permanent; the key can no longer be used to sign requests.
Authentication: Required (JWT only)
Path Parameters: Response:
Status Codes:
  • 200 - Key revoked successfully
  • 401 - Authentication failed
  • 403 - 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)

Next step

Once you have an API key and secret, see Signing Requests With API Keys to authenticate your requests.