Skip to main content

Method

POST /v1/bookings/:id/passengers

Path Parameters

id
string
required
Booking ID

Body Parameters

passengers
array
required
Array of passenger objects

Headers

Authorization
string
required
Bearer token (e.g. Authorization: Bearer YOUR_API_KEY)
content-type
string
application/json
curl -X POST https://api.voyantcloud.com/v1/bookings/bkg_456def/passengers \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "passengers": [
      { "personId": "5f7a1a0b-1111-2222-3333-abcdefabcdef", "role": "lead" }
    ]
  }'
{
    "passengers": [
        {
            "id": "psg_123",
            "person_id": "5f7a1a0b-1111-2222-3333-abcdefabcdef", 
            "role": "lead"
        }
    ]
}