BYOK

Get a BYOK provider credential

Changed on

Get a single bring-your-own-key (BYOK) provider credential by its id. A workspace-scoped management key only reaches credentials in its own workspace; any other id returns 404. Management key required.

get/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 details

GetBYOKKeyResponse required
data, intersection required

The BYOK credential.

Example response

{
  "data": {
    "allowed_api_key_hashes": null,
    "allowed_models": null,
    "allowed_user_ids": null,
    "created_at": "2025-08-24T10:30:00Z",
    "declared_region": null,
    "declared_zdr": null,
    "disabled": false,
    "id": "11111111-2222-3333-4444-555555555555",
    "is_byok_only": false,
    "is_exclusive": false,
    "is_fallback": false,
    "is_required": false,
    "label": "sk-...AbCd",
    "name": "Production OpenAI Key",
    "provider": "openai",
    "sort_order": 0,
    "workspace_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}

Changes

    • warning

      added the new celeris enum value to the data/allOf[#/components/schemas/BYOKKey]/provider response property for the response status

    • warning

      added the new langchain enum value to the data/allOf[#/components/schemas/BYOKKey]/provider response property for the response status