Skip to content

API Reference / API keys

Delete an API key

Permanently revokes an API key. Requests authenticated with that key stop working immediately.

POST/accounts.v1.Accounts/DeleteAPIKey

Request body

application/jsonRequired

Request to permanently delete an API key in the caller's workspace, which stops it authenticating immediately. A non-administrator can delete only their own keys.

apiKeyId?string

Opaque 16-byte identifier of the API key to delete, base64-encoded in JSON. An unknown key, or another user's key, returns not_found.

Format"byte" base64

Response body

application/json

Success

No fields.

curl -X POST "https://api.goldmine.to/accounts.v1.Accounts/DeleteAPIKey" \
  -H "Authorization: Bearer $CSTRADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "apiKeyId": "CgsMDQ4PEBESExQVFhcYGQ=="
  }'
{}