Skip to main content
POST
Create an automation

Authorizations

Authorization
string
header
required

Organization-scoped bearer credential: a customer API key (1club_sk_live_...) or an MCP OAuth access token.

Headers

Idempotency-Key
string

Retry-safe key; a repeat of the same request replays the first response

Maximum string length: 255

Body

application/json
name
string
required
Maximum string length: 255
triggerType
enum<string>
required

What starts a run, e.g. booking.created or contact.type_changed: the triggers the automation builder offers

Available options:
booking.created,
booking.updated,
booking.cancelled,
booking.no_show,
booking.checked_in,
checkin.failed,
booking.completed,
visit.completed,
booking.upcoming,
payment.succeeded,
payment.failed,
saved_payment_method.attached,
membership.created,
membership.cancelled,
membership.expiring,
membership.renewal_upcoming,
membership.paused,
membership.resumed,
membership.expired,
message.received,
review.submitted,
contact.created,
organization_user.activated,
contact.type_changed,
contact.pipeline_stage_changed,
contact.birthday,
progression.changed,
assessment.recorded,
tag.added,
tag.removed
steps
object[]
required
Required array length: 1 - 50 elements
description
string
Maximum string length: 2000
triggerConfig
object

Narrows the trigger, e.g. { "toTypes": ["member"] } on contact.type_changed, or { "duration": 1, "unit": "days" } on booking.upcoming

entryCondition
object

Who may enter a run beyond the trigger, as a contact audience filter; leave out for anyone

exitWhenConditionFails
boolean

Stop a run in progress once the contact no longer matches entryCondition

goal
object | null

What ends a run as achieved

exitEvents
object[]

Events that stop a run in progress

Maximum array length: 10
defaultChannels
enum<string>[]
Available options:
app,
email,
sms,
whatsapp

Response

Automation created, off

An automation: something that happens on its own when its trigger fires.

id
integer
name
string
description
string | null
category
enum<string>

SYSTEM for a built-in automation, CUSTOM for one the club made

Available options:
SYSTEM,
CUSTOM
systemKey
string | null

Names a built-in automation; null for one the club made

triggerType
string

What starts it

triggerConfig
object

The trigger's settings

isActive
boolean
lastTriggeredAt
string<date-time> | null
entryCondition
object | null

Who may enter a run, beyond the trigger; null when anyone the trigger fires for may

goal
object | null

What ends a run as achieved; null when it has none

exitEvents
object[]

Events that stop a run still in progress

steps
object[]

In flow order: the top-level steps by position, then the steps inside each branch, by parent step and position