Create a DRAFT automation — blank, from a blueprint (blueprint + blueprint_params, see List blueprints), or with a full definition graph (see Block catalog for every block's config and outputs). Nothing goes live until you call Publish. Send an Idempotency-Key header to make retries return the same automation.
Leave policy.reEntry out and the trigger decides who can enter again: Contact created, only once ever; Contact updated, every time; Joined segment, once every 30 days; Left segment, once every 30 days; Subscribed to topic, once every 30 days; Unsubscribed from topic, once every 30 days; Email activity, every time; Text received, every time; Custom event, every time; Manual enrollment, every time. A contact has one live run of an automation at a time by default, so an event for someone already in it starts nothing. On a custom-event trigger whose Wait for event, goal or exit rule matches the run's own event data ({{event.data.<key>}}), or that waits for a date in it, each event starts its own run instead, up to 10 at once (maxConcurrentRunsPerSubject, 1 to 10, sets it; readiness asks for it on a custom event, runs_per_person). A draft saves even when it doesn't validate yet; check it with Validate before publishing. Omit layout: the dashboard keeps its arrangement and places new blocks. heads_up[] lists values that couldn't be checked in this workspace. They are kept: publish refuses the ones that can't send (a sender, template, segment, topic or number) until they're fixed, and a new contact-field key is only a warning. Codes: sender_not_an_address (publish refuses it), sender_domain_not_found (publish refuses it), sender_domain_unverified (publish refuses it), resource_not_found (publish refuses it), sms_sender_inactive (publish refuses it), contact_field_not_found (a warning). The examples are complete bodies that validate; swap in your own ids and sender. Requires the automations:write capability.
Parameters1 field
Field
Type
Description
Idempotency-Key
string · header
Any unique string (1–256 characters, e.g. a UUID). Retrying with the same key and the same body within 24 hours returns the first result instead of sending again; the same key with a different body is `409 invalid_idempotent_request`, and one still in flight is `409 concurrent_idempotent_requests`.
Request body7 fields
Field
Type
Description
name
string
—
description
string
—
blueprint
string
—
blueprint_params
object
—
allow_missing_params
boolean
With `blueprint`: leave params you don't pass empty in the draft instead of answering 422 (defaults still fill durations and event names). Validate lists what's left to fill. Default false.
definition
object
—
policy
object
—
Response · 201 fields20 fields
Field
Type
Description
objectrequired
string
—
idrequired
string
—
namerequired
string
—
descriptionrequired
string | null
—
statusrequired
enumdraft | active | paused | archived
—
pause_reasonrequired
enum | null
—
published_versionrequired
integer | null
—
has_draft_changesrequired
boolean
—
triggerrequired
object | null
—
active_runsrequired
integer
—
total_runsrequired
integer
—
failed_runs_30drequired
integer
—
last_run_atrequired
string | null
—
archived_atrequired
string | null
When it was archived; null unless `status` is `"archived"`.
delete_afterrequired
string | null
When an archived automation is deleted for good unless it is unarchived first (archive time plus the retention period, 30 days by default); null unless `status` is `"archived"`.
created_atrequired
string
—
updated_atrequired
string
—
heads_up
object[]
On create and update: values in the saved draft that couldn't be verified here (an invented template id, a sender on a domain that isn't verified). They're kept; publish refuses them until fixed.
warnings
string[]
Update only: what this edit changed that you didn't write, in plain words. Today one case: with `maxConcurrentRunsPerSubject` left out, a custom-event journey's runs per person at once follows its graph, so an edit that adds or removes a match on the event's own data (`{{event.data.<key>}}` in a Wait for event, the goal or the exit rule, or a Wait until on an event date), or a policy sent without the field, moves it (1 or 10). The sentence names the old and new value, why, and how to keep the old one. Absent when nothing did. Tell the user.
generated_secrets
object[]
On create and update, when this write generated a Call webhook block's signing secret (a new block whose `secret` was left out, or `"generate"`): the secret, this once. Reads only ever show a placeholder.