List BYOK provider credentials
Changed onList the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace, or a workspace-scoped management key's own workspace. Use the workspace_id query parameter to scope the result to a different workspace, or the provider query parameter to filter by upstream provider. A workspace-scoped management key can only list its own workspace; any other workspace_id returns 403. Management key required.
Request
- Base URLhttps://openrouter.ai/api/v1
- AuthHTTP bearer
Query parameters
Number of records to skip for pagination
Maximum number of records to return (max 100)
Optional workspace ID to filter by. When omitted, a workspace-scoped management key uses its own workspace. An organization management key uses the account’s default workspace; if that default has been deleted, the request returns a 400 and you must pass workspace_id explicitly.
Optional provider slug to filter by (e.g. openai, anthropic, amazon-bedrock).
Response
List of BYOK credentials
List of BYOK credentials.
Total number of BYOK credentials matching the filters.
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"
}
],
"total_count": 1
}Changes
- warning
added the new
celerisenum value to thedata/items/providerresponse property for the response status - info
added the new enum value
celeristo thequeryrequest parameterprovider
- warning
- warning
added the new
langchainenum value to thedata/items/providerresponse property for the response status
1 more change in this revision
- warning