Per User Oauth

Submit User ID identity

Links a self-declared User ID to the pending flow as the user's identity. On success, redirects to the MCPs page.

The User ID is self-declared with no server-side verification - it matches the trust model of the X-Bf-User-Id header in the LLM Gateway path.

Request body is application/x-www-form-urlencoded (browser form submission).

POST
/api/oauth/per-user/consent/user-id
AuthorizationBearer <token>

Bearer token authentication. Use your MPilot virtual-key JWT or admin JWT. Virtual keys (prefixed with sk-bf-) can also be passed here.

In: header

flow_idstring

Pending flow ID

user_idstring

Self-declared user identifier (max 255 characters)

Response Body

curl -X POST "https://loading/{AI_GATEWAY_URL}/api/oauth/per-user/consent/user-id" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'flow_id=string&user_id=string'
Empty
On this page

On this page

No Headings