Itineraries (v2)
Create an itinerary
Runs the Setup step's rules, matches the place against the catalogue (free text stays valid; generation is name driven), files the draft row under the caller's trip (tripExternalId names one the caller may build on, else the place and dates match one, else a new trip is made) and answers its document. generate: true also starts the AI build, as the Generate button does; poll GET .../build until it is terminal. A free account at its trip limit with nothing matching gets the row without a trip and needs_trip_choice with the candidates; POST .../trip files it afterwards.
post/api/v2/itineraries
Request
- Base URL: https://www.endlesstravelplans.com
- URL: https://www.endlesstravelplans.com/api/v2/itineraries
- Auth: HTTP bearer
Request body
Example request
{
"generate": true,
"tripExternalId": "01J9X",
"destination": "Lisbon, Portugal",
"destinationId": 16,
"startDate": "2026-11-10",
"endDate": "2026-11-14",
"intensityLevel": "moderate",
"numAdults": 2,
"numSeniors": 18,
"numChildren": 1,
"childrenAges": [
7
],
"interests": [
"food",
"museums"
],
"categories": [
"u"
],
"mustDo": "w",
"mustDoChips": [
"p"
],
"tripType": "multi_city",
"stops": [
{
"destination": "n",
"destination_id": 16,
"nights": 22
}
],
"quickStartTemplateId": 16
}Response
Example response
{
"external_id": "9c7e",
"state": "draft",
"inputs": {
"destination": "Lisbon, Portugal"
},
"plan": {
"days": []
},
"build": null,
"can": {
"edit": true,
"generate": true
},
"edit_version": 0
}Changes
No recorded changes to this operation across all 1 revision of this API.