Oauth

OAuth callback endpoint

Handles the OAuth provider callback after user authorization. This endpoint processes the authorization code and exchanges it for an access token. On success, displays an HTML page that closes the authorization window.

GET
/api/oauth/callback
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

Query Parameters

statestring

State parameter for OAuth security (CSRF protection)

codestring

Authorization code from the OAuth provider

error?string

Error code if authorization failed

error_description?string

Error description if authorization failed

Response Body

curl -X GET "https://loading/{AI_GATEWAY_URL}/api/oauth/callback?state=string&code=string&error=string&error_description=string"
"string"
"string"
On this page

On this page

No Headings