Skip to content

OAuthAppToken

An access token and a refresh token of the app for the authenticated user, as the token endpoint returns them (RFC 6749 §5.1). The access token lasts an hour and the refresh token 30 days; refreshing at POST /oauth/token (with the app’s secret for a confidential app) replaces both, and presenting a used refresh token again revokes the whole grant.

object
access_token
required
string
token_type
required
string
Allowed values: Bearer
expires_in
required

Seconds until the access token expires.

integer
refresh_token
required
string
scope
required

The granted scopes, space-separated.

string

Example generated

{
"access_token": "example",
"token_type": "Bearer",
"expires_in": 1,
"refresh_token": "example",
"scope": "example"
}

For LLMs and coding agents:llms.txt,llms-full.txt, llms-small.txt

Analytics on this site