Skip to main content
DELETE
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
api-keys
/
{id}
Delete API Key
curl --request DELETE \
  --url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/api-keys/{id}

Path Parameters

organizationId
string
required
Organization ID
projectId
string
required
Project ID
id
string
required
API Key ID

Response

{
  "message": "API key successfully deleted",
  "id": "afd8012b-d81e-41c6-92cd-eed0c6cb3676"
}
Deleting an API key is permanent and cannot be undone. Any applications using this key will immediately lose access. Consider revoking the key first (setting status to revoked) if you need time to migrate applications to a new key.

Error Responses

API Key Not Found

{
  "error": {
    "code": "NOT_FOUND",
    "message": "API key not found"
  }
}

Code Examples

curl -X DELETE "https://api.metabind.ai/v1/organizations/org123/projects/proj456/api-keys/key123" \
  -H "Authorization: Bearer YOUR_API_KEY"