Skip to main content
All Automations endpoints sit under /api/brands/{brand}/automations/ with moduleAccess:automations middleware. Authenticate with EF-Access-Key.

List Automations

per_page
number
Results per page (1–100, default: 25)
q
string
Search by title
sort
string
newest (default), oldest, created_at, updated_at
sort_direction
string
asc or desc (used with created_at / updated_at)
cURL

List Automations (Unpaginated)

Returns { id, title } for all automations — useful for dropdowns.

Get Automation


Create Automation

title
string
required
Automation name (max 255 chars)
cURL

Update Automation

title
string
New title (max 255)
status
string
active, inactive, or draft
trigger_node_type
string
Trigger type (e.g. form_submission, purchase, tag_added)
entry_node
string
Entry node code
postback_code
string
Custom postback code (max 255)
collection_code
string
Collection code to attach

Delete Automation


Clone Automation

Creates a full copy of an automation within the same brand.
title
string
New name for the clone. Defaults to "<original title> (Copy)".
cURL

Copy Automation to Another Brand

id
number
required
Source automation ID
brand_id
number
required
Target brand ID to copy into
name
string
required
Title for the copied automation in the target brand

Export Automations

Queue a CSV export of automation records.
filters
array
Filter conditions
selected_ids
array
Limit export to specific automation IDs
columns
array
Columns to include

Get Builder Config

Returns the full visual-builder JSON for an automation. If a draft revision exists, the draft is returned instead of the published version.
cURL

Save Builder Config

Saves the visual-builder JSON. Pass draft=true to save as a draft revision without publishing.
(full builder document)
object
The complete builder config object (same shape as returned by GET)
draft
boolean
If true, saves as a draft revision. Published configs are deployed to S3 and activate the automation.
cURL — save as draft

Discard Draft Revision

Discards the current draft revision and reverts to the last published version.

Get Automation Stats

Returns execution counts per node, aggregated from the event log.
cURL

Execution Summary

Global summary of automation runs for the brand.

Execution Summary by Automation

Returns execution stats grouped per automation ID.

Automation Event Log

Returns paginated execution log for a specific automation.

Automation Events

Returns available event types that have fired for this automation.

Notes

  • postback_code is the unique trigger code used in postback URLs (/webhooks/{code})
  • Builder configs are deployed to S3 on publish — draft saves do not activate the automation
  • Stats are read from Elasticsearch and may have a short indexing delay
  • The copy endpoint copies across brands; clone copies within the same brand