Pistis
API referenceM C P

Begin an authorization (the person's browser)

GET
/oauth/authorize

response_type=code, client_id (an https metadata document URL, or a registered client), redirect_uri (registered), code_challenge + code_challenge_method=S256, state, scope (sessions or sessions:read), resource (<publicUrl>/mcp). Shows a consent page to the signed-in person; sends the browser back with code, state and iss. A client or redirect it can't accept gets a page, never a redirect.

Query Parameters

client_id?string
redirect_uri?string
response_type?string

Response Body

The consent page

response?stringtext/html
Example Request
curl -X GET 'http://127.0.0.1:7777/oauth/authorize?client_id=https%3A%2F%2Fclient.example%2Fmcp-client.json&redirect_uri=https%3A%2F%2Fclient.example%2Fcallback&response_type=code'
Example Response
"string"