Authorization
Obtain and refresh OAuth2 tokens
The parameters are read from the request body, so this method is kept for backward compatibility only. Use POST.
API version to apply. Defaults to v1.0 when omitted; an unknown value falls back to the latest version.
v1.3Possible values: Token pair issued successfully
Token to send in the Authorization header.
Token to keep in order to refresh the access token.
Lifetime of the access token, in seconds.
3600Always "bearer". Unused.
bearerUnused.
Unknown or missing grant type, missing credentials for the requested grant, or a user who signs in through SSO.
Too many login attempts for this username and IP address.
GET /oauth/v2/token HTTP/1.1
Host: api.daxium-air.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 103
"client_id='text'&client_secret='text'&grant_type='password'&username='text'&password='text'"{
"access_token": "text",
"refresh_token": "text",
"expires_in": 3600,
"token_type": "bearer",
"scope": "text"
}Every other endpoint is authenticated with the access_token returned here, sent as Authorization: Bearer <token>.
The access_token is valid for one hour, the refresh_token for 42 days. Refreshing resets the expiry of the access token and issues a new refresh token, so a client that refreshes often is never logged out.
Parameters are sent in the request body, encoded as application/x-www-form-urlencoded.
API version to apply. Defaults to v1.0 when omitted; an unknown value falls back to the latest version.
v1.3Possible values: Token pair issued successfully
Token to send in the Authorization header.
Token to keep in order to refresh the access token.
Lifetime of the access token, in seconds.
3600Always "bearer". Unused.
bearerUnused.
Unknown or missing grant type, missing credentials for the requested grant, or a user who signs in through SSO.
Too many login attempts for this username and IP address.
POST /oauth/v2/token HTTP/1.1
Host: api.daxium-air.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 103
"client_id='text'&client_secret='text'&grant_type='password'&username='text'&password='text'"{
"access_token": "text",
"refresh_token": "text",
"expires_in": 3600,
"token_type": "bearer",
"scope": "text"
}Last updated
Was this helpful?

