oauth
Authorize
Changed onStart OAuth flow: redirect user to Google login.
ChatGPT sends: GET /oauth/authorize?client_id=bolsai&redirect_uri=https://chat.openai.com/...&state=xyz&response_type=code
MCP clients additionally send PKCE (code_challenge + S256) and an RFC 8707 resource naming the MCP endpoint. We store them with the redirect_uri + state in session, then send the user to Google.
get/api/v1/oauth/authorize
Request
- Base URLhttps://usebolsai.com (the document declares no server; this is the origin it was published from)
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
client_idstring
redirect_uristring
statestring
response_typestring
code_challengestring
code_challenge_methodstring
resourcestring
Response
Successful Response
unknown required
Changes
- info
added the new optional
queryrequest parametercode_challenge - info
added the new optional
queryrequest parametercode_challenge_method - info
added the new optional
queryrequest parameterresource
- info