Call it
curl https://api.peume.com/v1/call/open-a-tracking-window \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"trackingDays": 30,
"requestedBy": "api"
}
}'const res = await fetch("https://api.peume.com/v1/call/open-a-tracking-window", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"trackingDays": 30,
"requestedBy": "api"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/open-a-tracking-window",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"trackingDays": 30,
"requestedBy": "api"
}
},
)
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: open-a-tracking-window.
Parameters
postIdstringId of an external post. Required unless `accountId` and `url` are both sent.
accountIdstringConnected account the post belongs to. Send together with `url`.
urlstringPublic URL of the post on the platform. Send together with `accountId`.
trackingDaysintegerHow many days the window stays open.
Example: 30
requestedBystringFree-form label for who asked for the window. It is stored and returned as given.
Example: api
