Call it
curl https://api.peume.com/v1/call/list-automations \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "welcome",
"kind": "ad_rule,event",
"limit": 50
}
}'const res = await fetch("https://api.peume.com/v1/call/list-automations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "welcome",
"kind": "ad_rule,event",
"limit": 50
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-automations",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "welcome",
"kind": "ad_rule,event",
"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-automations.
Parameters
accountIdstringOnly automations on this account: the ads connection of an ad rule, one of the `accountIds` of an event or scheduled automation, or the account a sequence, comment to DM or flow runs on.
adAccountIdstringOnly ad rules checking this platform ad account.
qstringOnly automations whose name contains this text, ignoring case. `%` and `_` match themselves.
Example: welcome
kindstringOnly these kinds, comma separated: `ad_rule`, `event`, `scheduled`, `sequence`, `comment`, `workflow`.
Example: ad_rule,event
limitintegerExample: 50
cursorstring`nextCursor` from the previous page, sent back unchanged with the same `q`, `kind`, `accountId` and `adAccountId`. Opaque: it holds the creation time and id of the page's last automation, and the next page is every kind's automations strictly older than it, so an automation created meanwhile never shifts or repeats a page.
