Skip to main content
POST
/
connect
/
v1
/
oauth
/
token
Issue an access token
curl --request POST \
  --url https://api.voyant.travel/connect/v1/oauth/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "clientId": "<string>",
  "clientSecret": "<string>",
  "grantType": "client_credentials",
  "scope": "connect:flights:read connect:bookings:write"
}
'
{
  "access_token": "<string>",
  "token_type": "Bearer",
  "expires_in": 3600,
  "scope": "connect:flights:read connect:bookings:write"
}

Body

application/json
clientId
string
required
clientSecret
string
required
grantType
enum<string>
default:client_credentials
Available options:
client_credentials
scope
string

Space-separated scopes to request.

Example:

"connect:flights:read connect:bookings:write"

Response

200 - application/json

Access token issued.

access_token
string
required
token_type
enum<string>
required
Available options:
Bearer
expires_in
integer
required

Token lifetime in seconds.

Example:

3600

scope
string
required
Example:

"connect:flights:read connect:bookings:write"