Replace the whole graph
automations:writeRate limit writesIdempotent with Idempotency-KeyReplaces all nodes and edges. nodes: up to 500, [{ uuid, type: start|trigger|action|condition|delay|goal, config }]; edges: up to 1000, [{ from, to, branch: default|yes|no }] (yes/no only from a condition, default otherwise; nothing leaves a goal); canvas: editor layout, stored as is. Node configs: trigger { triggers: [{ trigger, …filter }], conditions? }, action { action, … } (send_email needs template_id and sender_identity_id), condition { condition, … }, delay { days?, hours?, minutes? }. Trigger api_event: { trigger: "api_event", event_name, data_conditions?: [{ key, op, value }] }. A draft or paused automation is stored as sent after the structural checks; an active one must also pass the activation checks. Contacts standing on a node that is removed leave the flow (exited), and that node's stats are deleted.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Path parameters
idintegerrequiredBody
application/jsonnodesarray of objectrequired≤ 500 itemsShow 3 fields
uuidstringrequired≤ 64 charstypestringrequiredOne of start, trigger, action, condition, delay, goal
configobjectnullableedgesarray of objectrequired≤ 1000 itemsShow 3 fields
fromstringrequired≤ 64 charstostringrequired≤ 64 charsbranchstringdefault "default"One of default, yes, no
canvasobjectnullableShow example keys
{
"zoom": 1
}Headers
Idempotency-Keystring≤ 255 charsAny unique string per attempt. A retry with the same key gets the first answer back instead of doing the work twice.
curl --request PUT \ --url 'https://api.estage.com/v1/automations/automation-id/graph' \ --header 'ESTAGE-API-Key: est_live_your-api-key' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: your-unique-key' \ --data '{ "nodes": [ { "uuid": "n-trigger", "type": "trigger", "config": { "triggers": [ { "trigger": "api_event", "event_name": "order.paid", "data_conditions": [ { "key": "plan", "op": "eq", "value": "pro" } ] } ] } }, { "uuid": "n-wait", "type": "delay", "config": { "days": 1 } }, { "uuid": "n-email", "type": "action", "config": { "action": "send_email", "template_id": 311, "sender_identity_id": 7 } }, { "uuid": "n-done", "type": "goal", "config": {} } ], "edges": [ { "from": "n-trigger", "to": "n-wait", "branch": "default" }, { "from": "n-wait", "to": "n-email", "branch": "default" }, { "from": "n-email", "to": "n-done", "branch": "default" } ], "canvas": { "zoom": 1 } }'
{
"data": {
"id": 58,
"name": "Order follow-up",
"status": "draft",
"allow_reentry": false,
"created_at": "2026-11-13T09:00:00Z",
"updated_at": "2026-11-13T09:00:00Z",
"graph": {
"nodes": [
{
"uuid": "n-trigger",
"type": "trigger",
"config": {
"triggers": [
{
"trigger": "api_event",
"event_name": "order.paid",
"data_conditions": [
{
"key": "plan",
"op": "eq",
"value": "pro"
}
]
}
]
},
"stats": {
"entered": 0,
"yes": 0,
"no": 0,
"in_flow_now": 0,
"retrying": 0,
"email": null
}
},
{
"uuid": "n-wait",
"type": "delay",
"config": {
"days": 1
},
"stats": {
"entered": 0,
"yes": 0,
"no": 0,
"in_flow_now": 0,
"retrying": 0,
"email": null
}
},
{
"uuid": "n-email",
"type": "action",
"config": {
"action": "send_email",
"template_id": 311,
"sender_identity_id": 7
},
"stats": {
"entered": 0,
"yes": 0,
"no": 0,
"in_flow_now": 0,
"retrying": 0,
"email": {
"sent": 0,
"delivered": 0,
"opened": 0,
"clicked": 0,
"bounced": 0,
"complaints": 0,
"failed": 0
}
}
},
{
"uuid": "n-done",
"type": "goal",
"config": {},
"stats": {
"entered": 0,
"yes": 0,
"no": 0,
"in_flow_now": 0,
"retrying": 0,
"email": null
}
}
],
"edges": [
{
"from": "n-trigger",
"to": "n-wait",
"branch": "default"
},
{
"from": "n-wait",
"to": "n-email",
"branch": "default"
},
{
"from": "n-email",
"to": "n-done",
"branch": "default"
}
],
"canvas": {
"zoom": 1
}
},
"email_stats": {
"sent": 0,
"delivered": 0,
"opened": 0,
"clicked": 0,
"bounced": 0,
"complaints": 0,
"failed": 0
},
"waiting_reasons": {
"delay": 0,
"email_quota": 0,
"sms_quota": 0,
"throttled": 0
}
}
}{ error: { code, message, details } }.