BYOK

Delete a BYOK provider credential

Changed on

Delete (soft-delete) a bring-your-own-key (BYOK) provider credential by its id. The encrypted key material is wiped and the record is marked as deleted. A workspace-scoped management key only reaches credentials in its own workspace; any other id returns 404. Management key required.

delete/byok/{id}

Request

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

Path parameters

id, string uuid required

The BYOK credential ID (UUID).

Example:11111111-2222-3333-4444-555555555555

Response

BYOK credential deleted successfully

DeleteBYOKKeyResponse required
deleted, true required

Confirmation that the BYOK credential was deleted.

Example response

{
  "deleted": true
}

Changes