---
title: "Get per-user OAuth flow detail"
method: GET
path: "/api/oauth/per-user/flows/{id}"
tags: ["OAuth"]
---

# Get per-user OAuth flow detail

`GET /api/oauth/per-user/flows/{id}`

Returns the pending OAuth flow row metadata: which MCP client is being
authorized, which identity (user / VK / session) the resulting token
will be bound to, and whether an active token already exists for that
binding (`has_active_token`).

Requires management API authentication via `Authorization: Bearer <API key>`.

## Path parameters

- `id` string, required

## Response `200`

Flow detail

- MCPOauthFlowDetail — Response for GET /api/oauth/per-user/flows/{id}. Mirrors the headers-side `MCPHeadersFlowDetail` — identity binding for display plus the bits the consent UI needs to decide its copy.
  - `id` string, required
  - `flow_mode` 'user' | 'vk' | 'session', required
  - `status` 'pending' | 'authorized' | 'failed' | 'expired', required
  - `mcp_client` MCPClientSummary, required — Minimal MCP client view embedded in session rows.
    - `client_id` string
    - `name` string
  - `oauth_config_id` string, required
  - `user_id` string, nullable
  - `user` MCPUserSummary — Minimal user view embedded on user-keyed session rows.
    - `id` string
    - `name` string
  - `virtual_key` MCPVirtualKeySummary — Minimal virtual-key view embedded in session rows.
    - `id` string
    - `name` string
  - `session_id` string, nullable
  - `expires_at` string, date-time, required
  - `created_at` string, date-time, required
  - `has_active_token` boolean, required — True when an active token already exists for the flow's binding. A pending flow with this set means OAuth was re-initiated unnecessarily; the consent page can render this as "already authenticated" instead of prompting again.

## Other responses

- `401` — Unauthorized — missing or invalid credentials
- `404` — Resource not found
- `500` — Internal server error

---

[API](https://skmtc.net/getbifrost/apis/bifrost-api.md) · [All operations](https://skmtc.net/getbifrost/apis/bifrost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbifrost/bifrost-api/versions/f8cab88f64ea/schema)
