Skip to Content
ApiOauth

Oauth Token

Token endpoint (authorization_code with PKCE, refresh_token) Access tokens last one hour and are for the MCP only. Refresh tokens last 30 days from their last use and rotate: each refresh returns a new one, and presenting the previous one again revokes the grant. A code used twice revokes what its first use returned. A refresh may ask for fewer scopes, never more.

POST
/oauth/token

Token endpoint (authorization_code with PKCE, refresh_token)

Access tokens last one hour and are for the MCP only. Refresh tokens last 30 days from their last use and rotate: each refresh returns a new one, and presenting the previous one again revokes the grant. A code used twice revokes what its first use returned. A refresh may ask for fewer scopes, never more.

Request Body

application/x-www-form-urlencoded
  1. body
grant_type*string
Value in"authorization_code""refresh_token"
code?string
redirect_uri?string
code_verifier?string
refresh_token?string
client_id?string
client_secret?string
scope?string
resource?string

Response Body

Tokens

application/json
  1. response
access_token?string

qlt_…

token_type?"Bearer"
Value in"Bearer"
expires_in?integer
refresh_token?string

qlr_…

scope?string
Example Request
curl -X POST 'https://tiltas.openpanel.sh/api/v1/oauth/token' \  -H 'Content-Type: application/x-www-form-urlencoded' \  -d 'grant_type=authorization_code'
Example Response
{  "access_token": "string",  "token_type": "Bearer",  "expires_in": 0,  "refresh_token": "string",  "scope": "string"}