PeumeAPI

Places & travel

Get Booking

Read a booked trip: each booked item with its id, status and what can be changed.

$0.0005 per call

Call it

curl https://api.peume.com/v1/call/get-booking \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "run_id": "your run id"
  }
}'

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: get-booking.

Parameters

run_idRequiredstring

runId of one of YOUR OWN completed /trips/save runs for the trip.

check_eligibilityboolean

Whether to check now, with the airline or supplier, if each item can be voided, refunded or exchanged (`items[].servicing`). For a flight this asks the airline and can add several seconds. Send `false` to read the booking and its stored `fare_conditions` without asking the airline: an active flight item then leaves its eligibility fields out of `items[].servicing`, and hotel, car and ground items still state theirs. Defaults to `true`; after a 180-day notice the default becomes `false`, so send `true` explicitly before cancelling or changing.

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.