Call it
curl https://api.peume.com/v1/call/read-message-volume-and-response-times \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"granularity": "total"
}
}'const res = await fetch("https://api.peume.com/v1/call/read-message-volume-and-response-times", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"granularity": "total"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/read-message-volume-and-response-times",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"granularity": "total"
}
},
)
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-message-volume-and-response-times.
Parameters
conversationIdstringComma-separated conversation ids ( or platform), up to 25: one row per conversation.
accountIdstringComma-separated account ids, up to 25.
metricsstringComma-separated metric names from the catalog. Defaults to the counts; response times only when named.
groupBystringComma-separated groupings from the catalog, at most 2: account, conversation, platform, source, hourOfWeek, responseTimeBucket.
fromDatestringFirst day, inclusive (YYYY-MM-DD, UTC). Defaults to 30 days before toDate. The window is at most 90 days.
toDatestringLast day, inclusive (YYYY-MM-DD, UTC). Defaults to today.
platformstringA messaging platform, such as instagram or whatsapp.
sourcestringOnly messages sent from this source, such as api or broadcast. Not with response time metrics.
granularitystringtotal · day · week
Example: total
sortstringA sort from the catalog, such as messages-desc. With granularity=total.
includestringComma-separated includes from the catalog: account, conversation, total.
limitintegerRows returned with groupBy=account (10 by default, 100 at most) or groupBy=conversation (50 by default, 1,000 at most).
cursorstringWith groupBy=conversation: pagination.nextCursor of the previous page.
