Error
A valid request URL is required to generate request examples{
"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": {
"model_requested": "<string>",
"request_type": "<string>"
}
}Per-User OAuth
Finalize consent flow
Finalizes the consent flow atomically:
- Creates a
TablePerUserOAuthSession(24h Bifrost session token) - Transfers upstream tokens from the flow proxy to the session
- Issues a single-use
TablePerUserOAuthCode(5-minute TTL, PKCE-bound) - Deletes the
PendingFlow - Redirects to the MCP client’s
redirect_uriwithcodeandstate
The MCP client then exchanges the code at /api/oauth/per-user/token.
Request body is application/x-www-form-urlencoded (browser form submission).
POST
/
api
/
oauth
/
per-user
/
consent
/
submit
Error
A valid request URL is required to generate request examples{
"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": {
"model_requested": "<string>",
"request_type": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.getbifrost.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
BearerAuthBasicAuthApiKeyAuth
Bearer token authentication. Use your provider API key or Bifrost authentication token.
Virtual keys (prefixed with sk-bf-) can also be passed here.
Body
application/x-www-form-urlencoded
Pending flow ID
Response
Redirect to the MCP client's registered redirect_uri with
?code=xxx&state=yyy query parameters.
Was this page helpful?
⌘I

