ESTAGE Support
IdeasMy tickets

Replace the whole graph

Permission automations:writeRate limit writesIdempotent with Idempotency-Key

Replaces 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.

PUThttps://api.estage.com/v1/automations/{id}/graph

Authorization

ESTAGE-API-Keystringheaderrequired

A project key, est_live_…, from Settings → API keys. Call from server code only.

Path parameters

idintegerrequired

Body

application/json
nodesarray of objectrequired≤ 500 items
Show 3 fields
uuidstringrequired≤ 64 chars
typestringrequired

One of start, trigger, action, condition, delay, goal

configobjectnullable
edgesarray of objectrequired≤ 1000 items
Show 3 fields
fromstringrequired≤ 64 chars
tostringrequired≤ 64 chars
branchstringdefault "default"

One of default, yes, no

canvasobjectnullable
Show example keys
{
  "zoom": 1
}

Headers

Idempotency-Keystring≤ 255 chars

Any unique string per attempt. A retry with the same key gets the first answer back instead of doing the work twice.

RequestcURL
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
    }
  }'
OK
{
  "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
    }
  }
}
Example. Errors are { error: { code, message, details } }.