Skip to main content
POST
/
oauth
/
token
Exchange code for tokens
curl --request POST \
  --url https://public-api.sessionboard.com/oauth/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "grant_type": "authorization_code",
  "code": "<string>",
  "redirect_uri": "<string>",
  "client_id": "<string>",
  "code_verifier": "<string>"
}
'
{
  "access_token": "<string>",
  "token_type": "Bearer",
  "expires_in": 3600,
  "refresh_token": "<string>",
  "scope": "<string>"
}

Body

application/json
grant_type
enum<string>
required
Available options:
authorization_code
code
string
required
redirect_uri
string
required
client_id
string
required
code_verifier
string
required

PKCE code verifier

Response

Tokens issued

access_token
string
token_type
string
Example:

"Bearer"

expires_in
integer
Example:

3600

refresh_token
string
scope
string