Automation safety and limits
The guards every automation runs with: loop guards, frequency caps, re-entry, wait and run limits, live-run ceilings and the permissions each step needs.
These apply to every automation; you don't build them. The numbers are the defaults. Validate and readiness use the values in force for your workspace.
No loops from its own sends
An automation never starts from events its own steps caused, such as an open of its own email or its own contact update. A chain of automations that trigger each other stops after 5 hops.
Auto-replies don't start runs
Automation emails carry Auto-Submitted: auto-generated. An inbound email that reads as automatic (an out-of-office reply, a bounce, mail marked Precedence: bulk, junk or list) never starts or resumes a run while the trigger or wait keeps ignoreAutomaticMail on, which is the default. It never meets a goal either.
Hourly run limit
One contact can start at most 10 runs of one automation per rolling hour. Runs with no contact (an alert to a fixed address) are limited to 1,000 runs per hour per automation.
Runs per person at once
A contact has at most 1 live run of an automation at a time by default, a custom event included: a trigger that fires again while they are mid-journey starts nothing and is counted in the stats as held back by limits (guard_trips.run_in_progress). A custom-event journey whose Wait for event, goal or exit rule matches the run's own trigger ({{event.data.<key>}}), or that waits for a date in it, starts a run for each event instead, up to 10 at once by default (an appointment reminder per booking). maxConcurrentRunsPerSubject (1 to 10; "Runs per person at once" in the settings) sets it. On a custom event it is the person's call: readiness asks until it is set (runs_per_person), and agents ask before publishing. With several runs at once, match each wait and the goal to the run's own trigger so one doesn't move another; for a once-ever journey (a welcome or onboarding series) set it to 1 and reEntry to "never".
No run when every message would skip
Someone whose every reachable step is a message they'd be skipped for by consent (an email when they unsubscribed or aren't on its topic, a marketing text without their SMS consent) doesn't enter: no run starts and nothing is billed (guard_trips.no_consent; the dry run says they wouldn't enter). A journey with any other action (a contact, topic or segment change, a webhook, an email to a fixed address), or a message that may go out, starts as usual. Other skips (no address, the suppression list, the frequency cap) are left to the step.
Bulk edits that start automations
A live automation that starts on the change (Joined segment on this segment, Contact updated on this field) starts for each contact it changes. Above the limits a publish backfill must fit (one backfill's maximum, the room under the live-run limits, and on a plan without a balance the runs this period has left) the call is refused with 422 and details[0].code backfill_too_large, backfill_over_live_runs or backfill_over_runs, naming the automation, and nothing is written. Change fewer contacts at once, or pause the automation first. The dashboard's confirm says how many people each would start first.
Re-entry follows the trigger
When you don't set reEntry, the trigger decides: 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. Set reEntry to "never", "always" or "once_per_interval" with reEntryInterval only when the person asks.
Marketing frequency cap
Across all automations, a contact gets at most 3 marketing emails and 1 marketing text in any 24 hours by default. A send over the cap is skipped, not failed. maxSendsPerSubjectPerDay (or maxSmsPerSubjectPerDay) in a policy sets the cap that automation's sends check, but the count is always the contact's marketing sends from every automation: at 1, this automation skips anyone another journey already mailed that day. Transactional sends and sends to a fixed address are never capped.
Longest wait
A wait, or a wait-for-event timeout, can be at most 365 days. Publish refuses a longer one.
Runs end on their own
A run ends after 90 days unless the policy's maxRunDuration says otherwise (at most 365 days). Publish refuses a path whose waits add up to more than that.
Step budget
A run executes at most 50 action steps. Waits, branches and exits are free and don't count. Publish refuses a path with more action blocks than that (path_over_action_limit). An automation holds at most 100 blocks and 200 connections.
Live-run ceilings
An automation holds at most 10,000 live runs by default (maxActiveRuns, up to 100,000), and a workspace at most 1,000,000 across all its automations. Past either, new people are turned away, not queued: they don't enter later, and readiness warns (long_journey_fills_up) when a path keeps people over 30 days.
A broken step pauses the automation
A step that fails fails that person's run. Once the same block has failed 3 runs in a row, the automation pauses (error_threshold), the last run waits at the block, and the workspace's owners and admins are emailed (with an automation.paused webhook). Fix the cause, then resume or publish: the held run continues. This is onError: "pause_run", the default; fail_run fails each run and never pauses, skip_node skips the step and goes on. Set it on the policy or on one block.
Changes that would break it are refused
While an automation is live, paused, or unpublished with runs still finishing, Unitpost refuses a change that would break it: deleting or archiving a template, segment, topic, campaign, domain or phone number it uses, deleting or renaming a contact field it reads, and a template edit that adds a value its block doesn't map or empties the subject. The answer is 409 resource_in_use with each automation in error.details: change the automation and publish first. If a template or sender is gone or can't send anyway, the run waits at that step and the automation pauses (dependency_broken, and you're emailed).
A step that reaches nobody emails you
When one send step skips 20 people in a row for the same reason with nothing sent between (everyone unsubscribed, not on the topic, over the frequency cap, a missing template value under onMissingVariables: "skip"), the workspace's owners and admins get one email a day for that step, naming the reason. Nothing pauses: a skip is a normal outcome.
Call webhook requests are signed
A Call webhook block signs every request like Unitpost webhooks (svix-id, svix-timestamp, svix-signature), so the receiver checks it with its SDK's verifyWebhook. Leave secret out on a new block (or send "generate") and Unitpost generates one: the create or update answers it once (generated_secrets on the API, generatedSecrets in the app). Give it to whoever builds the receiver right away: it is never shown again. A secret you supply must be whsec_ or 22+ base64url characters; null sends unsigned.
People already in a segment or topic
A segment or topic trigger starts on the change, so people already in it don't enter. Publishing with backfill_count (the count the publish preview gave and the person confirmed) also starts them, only when the person asks: at most 10,000 people, about 600 a minute, never anyone who went through it, is unsubscribed or lacks consent, never more than the count confirmed or the automation runs a plan without a balance has left. A refused one is refused before anything goes live; every gate and run still counts.
Consent on every send
An email's type is its template's: the block has no type of its own, and a transactional on the block that disagrees with the template is refused at validate and publish. To change it, change the template's type, never the block: its page in the dashboard, or category with PATCH /v1/email/templates/{id}. It changes every campaign and automation that sends that template, so check its usage first (GET /v1/email/templates/{id}/usage) and ask. A marketing template honours the topic (topicId) and the global unsubscribe, carries an unsubscribe link, and rides the workspace's marketing sending stream with its campaigns: while marketing is paused that email's run waits and sends once marketing is resumed (after 7 days it ends unsent), and the rest of the automation keeps going; its bounces count against marketing, not receipts and sign-in codes. Too many spam complaints suspend the whole workspace. A marketing text needs the contact's recorded SMS consent (without it the step is skipped) and waits for the recipient's local quiet hours. Transactional texts are not held. Only numbers in the US and Canada take replies: a Sender ID is one-way, so a text that asks for a reply ("Reply STOP") needs another way to opt out where one carries it (readiness says sms_reach). A transactional template goes to everyone, including people who unsubscribed, with no unsubscribe link: use one only for receipts, security and account notices. A topicId needs a marketing template; a fixed to (an internal alert) needs a transactional one.
Timing is a block, not a setting
To send at a sensible local hour, add a Wait until block (flow.wait.until) with a time of day in the contact's time zone. To send relative to a date (3 days before contact.trial_ends_at, 24 hours before event.data.appointment_at), give the Wait until a relativeTo; a contact date that changes re-times the wait. The policy's quietHours (start, end, tz, optional timezone) holds marketing texts only: one due inside the window waits until it ends in the recipient's zone. It never holds email or transactional texts.
Only new triggers enter, unless you backfill
Publishing doesn't enroll people who already match. Runs start from trigger events that happen after it goes live, or from a manual enroll, unless a segment or topic automation is published with backfill_count (see the backfill rule; only when the person asks).
When a guard stops someone
The run, or the step, says which guard and why, in the dashboard and in the API.
| Code | Where | What it says |
|---|---|---|
loop_self_trigger | enrollment | Not started: the event came from this automation's own steps. |
loop_hop_budget | enrollment | Not started: the event came from a chain of automations triggering each other. |
loop_unitpost_number | enrollment | Not started: the text came from another Unitpost number. |
auto_submitted | enrollment | Not started: the email was an automatic reply or bulk mail. |
run_rate | enrollment | Not started: this contact started it too many times in the last hour. |
run_in_progress | enrollment | Not started: this contact already has as many runs in progress as the automation allows at once. |
re_entry | enrollment | Not started: re-entry not allowed yet. |
max_active_runs | enrollment | Not started: the automation has the most runs in progress it allows. |
workspace_live_runs | enrollment | Not started: the workspace has the most runs in progress it allows. |
frequency_capped | step (skip_reason) | Skipped: frequency cap reached. |
max_steps | run end (exit reason) | Ended: action limit reached. |
ttl | run end (exit reason) | Ended: the run reached its time limit. |
unmatched_subject | enrollment (custom event for someone who isn't a contact, sent with create_contact: false) | Not started: the event named someone who isn't a contact yet. |
contact_limit | enrollment (an unknown email at the plan's contact limit: no contact made, no run) | Not started: the event named someone new, and the plan's contact limit is reached. |
no_consent | enrollment (every action is a message they'd be skipped for by consent: no run, not billed) | Not started: every message in it would be skipped for this contact (unsubscribed, or no consent to texts), so no run was billed. |
Permissions
Drafting never sends, so it is a separate permission from going live. Give a sending backend only events:emit. A Sending key created before automations launched doesn't include it (its POST /events answers 403 insufficient_scope saying so): create a new Sending key, which does. An event for an email that isn't a contact yet makes it one when an automation needs it, so a key that can only send events can add contacts, and each run it starts counts against the plan's runs.
| Capability | Allows |
|---|---|
automations:read | Read automations, their versions, and run history. |
automations:write | Create and edit draft automations and their settings, pause them, cancel runs, and delete automations. Never sends. |
automations:publish | Take automations live and keep them sending: publish and republish, resume, unpublish, enroll a contact by hand, retry failed runs, and skip a run's wait. |
events:emit | Send custom events (POST /v1/events) that trigger automations and webhooks. |
Publish, resume, unpublish, starting a run by hand, retrying runs and skipping a wait need automations:publish. A key with its own capability list that holds automations:write but not automations:publish can edit drafts but gets 403 on those six: add automations:publish to the key.