Skip to main content
DELETE
/
keys
/
{hash}
Delete an API key
curl --request DELETE \
  --url https://openrouter.ai/api/v1/keys/{hash} \
  --header 'Authorization: Bearer <token>'
{
  "deleted": true
}

Authorizations

Authorization
string
header
required

API key as bearer token in Authorization header

Path Parameters

hash
string
required

The hash identifier of the API key to delete

Example:

"f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943"

Response

API key deleted successfully

deleted
boolean
required

Confirmation that the API key was deleted

Example:

true