Call it
curl https://api.peume.com/v1/call/search-rental-cars \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"pick_up": "your pick up",
"driver_age": 10,
"residence_country": "your residence country"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-rental-cars", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"pick_up": "your pick up",
"driver_age": 10,
"residence_country": "your residence country"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-rental-cars",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"pick_up": "your pick up",
"driver_age": 10,
"residence_country": "your residence country"
}
},
)
print(res.json()["output"])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: search-rental-cars.
Parameters
pick_upRequiredobjectdrop_offobjectWhere the car is returned. Omit for a round trip (return to the pick-up branch) and set `drop_off_date_time` instead.
drop_off_date_timestringDrop-off date-time for a round trip, branch-local. Required when `drop_off` is omitted.
driver_ageRequiredintegerDriver's age at pick-up (18-99). Pricing and availability are age-dependent.
residence_countryRequiredstringDriver's country of residence, ISO 3166-1 alpha-2. Rates and inclusions vary by residence.
currencystringISO 4217 display currency. Defaults to USD.
langstringBCP-47 language tag for vehicle and branch text.
max_resultsintegerHow many offers to return, in `sort` order (default 50, at most 500). `total_found` says how many the search found.
sortstringOffer order. `price` (the default): `price.pay_now`, cheapest first.
price
