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>"
}
}Revoke an MCP session
Revokes a session by primary key. Accepts these row kinds:
- OAuth token rows → hard-deletes the token plus any pending OAuth flow for the same binding (so an in-flight callback can’t undo the revoke)
- Header credential rows → hard-deletes the credential plus any pending header submission flow for the same binding
- Pending per-user-headers flow rows → hard-deletes just the flow
Note: pending per-user OAuth flow rows are not revocable by this endpoint — they expire naturally or are cleared when the bound token row is revoked. To cancel a pending OAuth flow, revoke its parent token (if one exists) or wait for expiry.
Bifrost does not call the upstream provider’s revoke endpoint — revocation is local. Per-user-headers credentials never call upstream.
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
Bearer token authentication. Use your provider API key or Bifrost authentication token.
Virtual keys (prefixed with sk-bf-) can also be passed here.
Path Parameters
Session / credential / flow row ID
Response
Revoked
Was this page helpful?

