Skip to main content
POST
/
connect
/
v1
/
operators
/
{operatorId}
/
oauth-clients
Create an OAuth client
curl --request POST \
  --url https://api.voyant.travel/connect/v1/operators/{operatorId}/oauth-clients \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "scopes": [
    "connect:flights:read"
  ],
  "name": "<string>",
  "grantId": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z"
}
'
{
  "id": "<string>",
  "operatorId": "<string>",
  "clientId": "<string>",
  "scopes": [
    "<string>"
  ],
  "active": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "clientSecret": "<string>",
  "name": "<string>",
  "grantId": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Provide either a static platform API key or an OAuth2 access token (from /connect/v1/oauth/token) as Authorization: Bearer <token>. Scopes are connect:* (e.g. connect:bookings:write).

Path Parameters

operatorId
string
required

Operator id.

Body

application/json
scopes
string[]
required
Example:
["connect:flights:read"]
name
string
grantId
string
expiresAt
string<date-time>

Response

201 - application/json

Created OAuth client (with one-time secret).

id
string
required
operatorId
string
required
clientId
string
required
scopes
string[]
required
active
boolean
required
createdAt
string<date-time>
required
clientSecret
string

Plaintext secret; present only in the create response.

name
string | null
grantId
string | null
expiresAt
string<date-time> | null