Skip to main content
DELETE
/
organizations
/
{organizationId}
/
api-keys
/
{id}
Delete API key
curl --request DELETE \
  --url http://sandbox.mintlify.com/organizations/{organizationId}/api-keys/{id} \
  --header 'Authorization: Bearer <token>'
Revokes and deletes an API key.

Permissions

User must be owner or admin.

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

curl -X DELETE http://localhost:3001/api/organizations/acme-corp/api-keys/abc123 \
  -H "Authorization: Bearer <token>"

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