Skip to main content
GET
/
api
/
mcp
/
per-user-headers
/
flows
/
{id}
Error
A valid request URL is required to generate request examples
{
  "id": "<string>",
  "expires_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "required_header_keys": [
    "<string>"
  ],
  "has_active_credential": true,
  "mcp_client": {
    "client_id": "<string>",
    "name": "<string>"
  },
  "user_id": "<string>",
  "user": {
    "id": "<string>",
    "name": "<string>"
  },
  "virtual_key": {
    "id": "<string>",
    "name": "<string>"
  },
  "session_id": "<string>",
  "admin_header_keys": [
    "<string>"
  ],
  "submitted_keys": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Management API authentication for /api/* endpoints. Use the Authorization header with Bearer <API key>. Virtual keys, dashboard/user/session tokens, and x-api-key headers are not supported on management APIs.

Path Parameters

id
string
required

Flow row ID

Response

Flow detail

Response for GET /api/mcp/per-user-headers/flows/{id}. Carries the schema the end-user needs to fill in plus identity binding info for display.

id
string
required
flow_mode
enum<string>
required
Available options:
user,
vk,
session
status
enum<string>
required
Available options:
pending,
completed,
expired
expires_at
string<date-time>
required
created_at
string<date-time>
required
required_header_keys
string[]
required

Header names the end-user must supply on this submission

has_active_credential
boolean
required

True when a credential already exists for the flow's (mode, identity, mcp_client) triple. The submission UI uses this to render an "edit" affordance instead of a fresh form.

mcp_client
object

Minimal MCP client view embedded in session rows.

user_id
string | null
user
object

Minimal user view embedded on user-keyed session rows.

virtual_key
object

Minimal virtual-key view embedded in session rows.

session_id
string | null
admin_header_keys
string[]

Names (not values) of static admin headers attached to every per-user request. Surfaced so the user understands what context will accompany their values.

submitted_keys
string[]

Names of header keys already on the caller's existing credential. Populated whenever a credential exists for the binding (both active and needs_update states — orphaned credentials are filtered server-side). Values are never returned. has_active_credential only flips to true when the credential is in active state.