ESTAGE Support
IdeasMy tickets

Activate

Permission automations:enrollorautomations:writeRate limit writesIdempotent with Idempotency-Key

Runs the readiness checks, then sets the automation active. Also restarts a paused automation. Checks: an entry (trigger or start) node, known trigger/action/condition types, each step configured (e.g. send_email has a message of this project and a sender), both yes and no arrows on every condition, every id named by a step belongs to this project, every node reachable from an entry.

POSThttps://api.estage.com/v1/automations/{id}/activate

Authorization

ESTAGE-API-Keystringheaderrequired

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

Path parameters

idintegerrequired

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 POST \
  --url 'https://api.estage.com/v1/automations/automation-id/activate' \
  --header 'ESTAGE-API-Key: est_live_your-api-key' \
  --header 'Idempotency-Key: your-unique-key'
OK
{
  "data": {
    "id": 58,
    "name": "Order follow-up",
    "status": "active",
    "allow_reentry": false,
    "created_at": "2026-11-13T09:00:00Z",
    "updated_at": "2026-11-13T09:05: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 } }.