Skip to Content
ApiOauth

Oauth Preview

What the consent page shows The authorization endpoint is the page `/oauth/authorize` on the site; it calls this route with the request's parameters and the person's session. PKCE with `S256` is required; `resource`, when given, must be the MCP. A wrong client or redirect URI is never sent back to the client; other errors carry `redirect_to`.

GET
/oauth/authorize

What the consent page shows

The authorization endpoint is the page /oauth/authorize on the site; it calls this route with the request's parameters and the person's session. PKCE with S256 is required; resource, when given, must be the MCP. A wrong client or redirect URI is never sent back to the client; other errors carry redirect_to.

Authorization

session
cookieql_session<token>

Query Parameters

response_type*"code"
Value in"code"
client_id*string
redirect_uri*string
code_challenge*string
code_challenge_method*"S256"
Value in"S256"
state?string
scope?string

Space-separated scopes; none asks for every scope but network:delete

resource?string

Response Body

The consent

application/json
  1. response
client?
scopes?array<>
networks?array<>

The Networks where the person is Owner or Admin

resource?string
deny_url?string

The redirect with error=access_denied

email?string
Example Request
curl -X GET 'https://tiltas.openpanel.sh/api/v1/oauth/authorize?response_type=code&client_id=string&redirect_uri=string&code_challenge=string&code_challenge_method=S256'
Example Response
{  "client": {    "id": "string",    "name": "string",    "uri": "string",    "redirect_uri": "string",    "redirect_host": "string",    "redirect_scheme": "string"  },  "scopes": [    {      "id": "read",      "title": "string",      "description": "string",      "requested": true,      "required": true    }  ],  "networks": [    {      "id": "string",      "name": "string",      "role": "owner"    }  ],  "resource": "string",  "deny_url": "string",  "email": "string"}