Skip to Content
Docs

Handle OAuth callback by providing the authorization code and state

GET
/api/mcp_server/callback

Handle OAuth callback by providing the authorization code and state.

Not available to personal access tokens; call it from a signed-in session.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
code*string

Authorization code

error?string

Error message (if any)

state*string

State parameter

Response Body

Success

Example Request
curl -X GET 'http://localhost:7091/api/mcp_server/callback' \  -H 'Content-Type: application/json' \  -d '{  "code": "string",  "state": "string"}'
Example Response200
Empty