Call it
curl https://api.peume.com/v1/call/read-guest-reviews \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"hotel_id": "your hotel id"
}
}'const res = await fetch("https://api.peume.com/v1/call/read-guest-reviews", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"hotel_id": "your hotel id"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/read-guest-reviews",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"hotel_id": "your hotel id"
}
},
)
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: read-guest-reviews.
Parameters
limitintegerReviews per page, 1 to 50. Default 10.
offsetstringReviews to skip before this page. Default 0.
hotel_idRequiredstringThe `hotel_id` of a hotel from /hotels/search, or the `id` /hotels/details returns, passed exactly as received and URL-encoded as one path segment. It is opaque: do not parse or build it.
