BYOK
Get a BYOK provider credential
Changed onGet 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 URLhttps://openrouter.ai/api/v1
- AuthHTTP bearer
Path parameters
id, string uuid required
The BYOK credential ID (UUID).
Example:11111111-2222-3333-4444-555555555555
Response
BYOK credential details
Get BYOKKey Response 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
celerisenum value to thedata/allOf[#/components/schemas/BYOKKey]/providerresponse property for the response status
- warning
- warning
added the new
langchainenum value to thedata/allOf[#/components/schemas/BYOKKey]/providerresponse property for the response status
- warning