A valid request URL is required to generate request examples{
"virtual_key": {
"id": "<string>",
"name": "<string>",
"value": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"provider": "anthropic",
"model_requested": "<string>",
"request_type": "<string>"
}
}Mint an extra virtual key for a user
Issues an additional virtual key for the user.
Virtual keys are scoped to the user, not to any one access profile: what a request may do with the key is read from whichever of the user’s active profiles grants it, and each of those profiles is a separate routing candidate the request may be served by. The user must therefore hold at least one access profile — the request returns 404 otherwise — but the key is not tied to the profile that happened to be current when it was minted, and it survives that profile being detached as long as the user still holds another.
A valid request URL is required to generate request examples{
"virtual_key": {
"id": "<string>",
"name": "<string>",
"value": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"provider": "anthropic",
"model_requested": "<string>",
"request_type": "<string>"
}
}Authorizations
Management API authentication for /api/* endpoints. Use the Authorization header
with Bearer <token>, where <token> is one of:
- a Bifrost management API key,
- a dashboard session token issued by
POST /api/session/login, - base64 of
<admin-username>:<admin-password>(legacy equivalent ofBasicAuth).
Virtual keys (sk-bf-*) and the x-api-key header are not accepted on management APIs -
the sole exception is GET /api/governance/virtual-keys/quota, which is virtual-key-only.
Path Parameters
Response
Virtual key created.
Show child attributes
Show child attributes
Was this page helpful?

