Skip to main content
POST
/
connect
/
v1
/
operators
/
{operatorId}
/
invite-tokens
Create an invite token
curl --request POST \
  --url https://api.voyant.travel/connect/v1/operators/{operatorId}/invite-tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "scopes": [
    "<string>"
  ],
  "label": "<string>",
  "grantId": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z"
}
'
{
  "id": "<string>",
  "scopes": [
    "<string>"
  ],
  "token": "<string>",
  "label": "<string>",
  "grantId": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z",
  "redeemedAt": "2023-11-07T05:31:56Z",
  "createdAt": "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
label
string
grantId
string
expiresAt
string<date-time>

Response

201 - application/json

Created invite token.

id
string
required
scopes
string[]
required
token
string

Plaintext token, present only in the create response.

label
string | null
grantId
string | null
expiresAt
string<date-time> | null
redeemedAt
string<date-time> | null
createdAt
string<date-time>