PeumeAPI

Places & travel

Build Trip

Create or edit a trip: add flight, hotel and car offers and set the travellers.

$0.0005 per call

Call it

curl https://api.peume.com/v1/call/build-trip \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "run_id": "your run id",
    "add_item": "your add item"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: build-trip.

Parameters

run_idstring

Omit to create a new trip. To edit a trip, the runId of one of YOUR OWN completed /trips/save runs for it.

add_itemobject
remove_itemobject
upsert_travelersobject
hotel_room_guestsobject

Optional primary adult room-contact overrides keyed by the returned hotel item_id/product_id. Each product array is non-empty and occupancy_number values are unique positive room slots; omitted slots use persisted adult travelers in order with the trip contact email. The trip must already exist because the keys refer to its items.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.