Skip to main content
DELETE
Delete API key
Revokes and deletes an API key.

Permissions

Owners and admins can revoke any key. A member can only revoke their own sandbox keys:
  • Another user’s key returns 404 Not Found.
  • Their own production key returns 403 Forbidden.
If the organization is closed, the request returns 403 Forbidden. Keys are also revoked automatically when their creator leaves the organization or is demoted to member (see Create API Key).

What Happens

  • API key is immediately revoked
  • Future requests with this key will fail with 401
  • Key cannot be restored (create a new one if needed)

Example

Use Cases

  • Rotate API keys for security
  • Remove compromised keys
  • Clean up unused keys

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required
id
string
required

Response

API key deleted successfully