palbaseDocs

Palbase ai · API

GET/ai/mcp/oauth/callback

Complete MCP OAuth 2.1 PKCE callback

Public browser callback that exchanges an OAuth 2.1 authorization code using PKCE, seals the user's token, and resumes any parked MCP auth waits.

Called by .

Query

codestring · optionalOAuth authorization code
statestring · optionalSigned PKCE state token
curl
curl -X GET "https://<your-ref>.palbase.studio/ai/mcp/oauth/callback"

Responses

200OAuth connection completed

400The request is malformed, or names what this module does not offer (the error names which)

401No valid credential

403A publishable key or a user's session: everything here is the project's server's, called with the secret key

404No such response, job or provider in this project

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation CompleteMCPOAuthCallback of ai's contract.