MCP Gateway
ApiServer oauth

Handle server OAuth callback

Process the OAuth provider redirect after user authorization. Exchanges the code for tokens, encrypts them, and stores a user connection.

GET
/api/v1/oauth/callback/{oauth_app_alias}

Path Parameters

oauth_app_alias*string

Query Parameters

code?|

Authorization code

state?|

CSRF state token

error?|

OAuth error

error_description?|

OAuth error description

Response Body

application/json

application/json

curl -X GET "https://loading/api/v1/oauth/callback/string"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}