Skip to main content

Method

POST /v1/departures

Body Parameters

Headers

Authorization
string
Bearer token (e.g. Authorization: Bearer YOUR_API_KEY)
content-type
string
application/json

Request Example

curl -X POST https://api.voyantcloud.com/v1/departures \
  -H "Authorization: Bearer $VOYANT_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "productId": "prod_123",
    "startAt": "2025-06-01T08:00:00Z",
    "endAt": "2025-06-05T18:00:00Z",
    "capacity": 24,
    "status": "scheduled",
    "meetingPoint": { "name": "Athens Marina" }
  }'

Response

{
  "data": {
    "id": "dep_456",
    "productId": "prod_123",
    "startAt": "2025-06-01T08:00:00.000Z",
    "endAt": "2025-06-05T18:00:00.000Z",
    "capacity": 24,
    "status": "scheduled",
    "meetingPoint": { "name": "Athens Marina" },
    "transportModeId": null,
    "transportConfigId": null,
    "itineraryId": null,
    "itineraryVersionId": null,
    "shipId": null,
    "isDirectionReverse": false,
    "externalCodes": null,
    "attributes": {},
    "createdAt": "2025-02-20T12:34:56.000Z"
  }
}