Call it
curl https://api.peume.com/v1/call/list-staged-ad-changes \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"status": "staged",
"limit": 50
}
}'const res = await fetch("https://api.peume.com/v1/call/list-staged-ad-changes", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"status": "staged",
"limit": 50
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-staged-ad-changes",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"status": "staged",
"limit": 50
}
},
)
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: list-staged-ad-changes.
Parameters
statusstringWhich changes to list.
staged · failed
Example: staged
accountIdstringOnly the changes of this connected account.
platformstringOnly the changes on this ad platform, as the change names it (for example `facebook` or `google`).
typestringOnly the changes of this type.
campaign_status · ad_set_status · ad_status · campaign_update · ad_set_update · ad_update · campaign_targeting · ad_create · campaign_create · ad_set_create · operation
createdBystringOnly the changes this user staged.
limitintegerHow many changes to return.
Example: 50
cursorstringThe `nextCursor` of the previous page, unchanged.
