Call it
curl https://api.peume.com/v1/call/edit-an-automation \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"automationId": "your automationId"
}
}'const res = await fetch("https://api.peume.com/v1/call/edit-an-automation", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"automationId": "your automationId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/edit-an-automation",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"automationId": "your automationId"
}
},
)
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: edit-an-automation.
Parameters
automationIdRequiredstringnamestringdescriptionstringSequences and flows.
statusstring`draft` only for a sequence or a flow that has not left draft.
draft · active · paused
triggerobjectThe trigger of the automation's kind.
orTriggersarrayComment to DM.
graphobjectAn `AutomationGraph` (with `triggers`) replaces the whole definition of any kind, sent without `trigger`, `orTriggers`, `subjects`, `filter`, `conditions`, `alert`, `steps` or `limits`. Comment to DM and flows also take their own graph, as read.
subjectsstringfilterobjectfilter
conditionsobjectconditions
alertstringstepsarrayThe steps the automation's kind takes.
limitsobjectThe limits of the automation's kind.
