Skip to main content
DELETE
https://api.bunship.com
/
api
/
v1
/
organizations
/
{orgId}
/
api-keys
/
{id}
Revoke API Key
curl --request DELETE \
  --url https://api.bunship.com/api/v1/organizations/{orgId}/api-keys/{id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "API key revoked successfully"
}
Permanently revokes an API key. Any requests made with this key after revocation will receive a 401 response. This action cannot be undone.

Auth

Requires a valid Bearer token. User must be a member of the organization.

Path Parameters

orgId
string
required
Organization identifier.
id
string
required
API key identifier.

Response

success
boolean
Always true on success.
message
string
Confirmation message.
{
  "success": true,
  "message": "API key revoked successfully"
}

Example

curl -X DELETE https://api.bunship.com/api/v1/organizations/org_cld2abc123def456/api-keys/key_abc123 \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."