Skip to main content
POST
/
v1
/
oauth2
/
token
Request Token
curl --request POST \
  --url https://api.spairehq.com/v1/oauth2/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'grant_type=<string>' \
  --data 'client_id=<string>' \
  --data 'client_secret=<string>' \
  --data 'code=<string>' \
  --data 'redirect_uri=<string>'
{
  "access_token": "<string>",
  "token_type": "<string>",
  "expires_in": 123,
  "refresh_token": "<string>",
  "scope": "<string>",
  "id_token": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.spairehq.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/x-www-form-urlencoded
grant_type
string
required
Allowed value: "authorization_code"
client_id
string
required
client_secret
string
required
code
string
required
redirect_uri
string<uri>
required
Required string length: 1 - 2083

Response

200 - application/json

Successful Response

access_token
string
required
token_type
string
required
Allowed value: "Bearer"
expires_in
integer
required
refresh_token
string | null
required
scope
string
required
id_token
string
required