API Keys

Delete an API key

Changed on

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

delete/keys/{hash}

Request

  • Base URL
    https://openrouter.ai/api/v1
  • Auth
    HTTP bearer

Path parameters

hash, string required

The hash identifier of the API key to delete

Example:f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943

Response

API key deleted successfully

object required
deleted, true required

Confirmation that the API key was deleted

Example response

{
  "deleted": true
}

Changes

    • info

      added the non-success response with the status

    • info

      added the optional property openrouter_metadata to the response with the status

    • info

      added the optional property openrouter_metadata to the response with the status

    2 more changes in this revision