DELETE
/
api
/
v2
/
keys
/
{keyId}
curl --request DELETE \
  --url https://api.buena.ai/api/v2/keys/{keyId} \
  --header 'x-api-key: <api-key>'
{
  "success": true,
  "message": "API key key_123abc has been successfully deleted"
}

Permanently delete an API key. This action cannot be undone and will immediately revoke access for any applications using this key.

This action is irreversible. Make sure you’re not using this key in any production applications before deleting it.

Request

keyId
string
required

The unique identifier of the API key to delete

x-api-key
string
required

Your API key with keys:manage permission

Examples

Delete API Key

curl -X DELETE "https://api.buena.ai/api/v2/keys/key_123abc" \
  -H "x-api-key: YOUR_API_KEY"

Response

success
boolean

Always true for successful requests

message
string

Confirmation message

{
  "success": true,
  "message": "API key key_123abc has been successfully deleted"
}

Next Steps