palbaseDocs

Palbase ai · API

GET/ai/endpoints/{name}/oauth/start

Start MCP OAuth 2.1 PKCE flow

Generate an OAuth 2.1 PKCE authorization URL and signed state token for a user to connect an MCP endpoint.

Called by your server, with the project's secret key.

Path

namestring · requiredMCP endpoint name

Query

user_idstring · optionalApp user identifier
redirect_uristring · optionalOptional post-authorization redirect URL
curl
curl -X GET "https://<your-ref>.palbase.studio/ai/endpoints/<name>/oauth/start" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200OAuth authorization URL

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 StartMCPOAuth of ai's contract.