API Keys

Delete an API key

Delete an existing API key. Authenticate with a management key.

delete/keys/{hash}

Request

  • Base URL: https://openrouter.ai/api/v1
  • URL: https://openrouter.ai/api/v1/keys/{hash}
  • Auth: HTTP bearer

Path parameters

hashstring required

The hash identifier of the API key to delete

Example:f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943

Response

API key deleted successfully

deletedtrue required

Confirmation that the API key was deleted

Example response

{
  "deleted": true
}

Changes

No recorded changes to this operation across all 364 revisions of this API.