For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authorization

Obtain and refresh OAuth2 tokens

Deprecated

Legacy alias of the POST method.

get

The parameters are read from the request body, so this method is kept for backward compatibility only. Use POST.

Header parameters
X-Accept-Versionstring · enumOptional

API version to apply. Defaults to v1.0 when omitted; an unknown value falls back to the latest version.

Default: v1.3Possible values:
Body
or
Responses
200

Token pair issued successfully

application/json
access_tokenstringOptional

Token to send in the Authorization header.

refresh_tokenstringOptional

Token to keep in order to refresh the access token.

expires_inintegerOptional

Lifetime of the access token, in seconds.

Example: 3600
token_typestringOptional

Always "bearer". Unused.

Example: bearer
scopestringOptional

Unused.

get/oauth/v2/token
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"
}

Get or refresh tokens

post

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.

Header parameters
X-Accept-Versionstring · enumOptional

API version to apply. Defaults to v1.0 when omitted; an unknown value falls back to the latest version.

Default: v1.3Possible values:
Body
or
Responses
200

Token pair issued successfully

application/json
access_tokenstringOptional

Token to send in the Authorization header.

refresh_tokenstringOptional

Token to keep in order to refresh the access token.

expires_inintegerOptional

Lifetime of the access token, in seconds.

Example: 3600
token_typestringOptional

Always "bearer". Unused.

Example: bearer
scopestringOptional

Unused.

post/oauth/v2/token
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?