---
title: "Automations"
description: "Event-driven journeys as versioned JSON graphs: create a draft (blank, from a blueprint, or with a full definition), validate it, publish it, and read the per-run step ledger. Ids are `atm_…` (automation) and `run_…` (run). Build in this order: `GET /automations/catalog` → `GET /automations/blueprints` → `GET /events/definitions` → `POST /automations` → `POST /automations/{id}/validate` → `POST /automations/{id}/simulate` → `POST /automations/{id}/publish`. Publishing, resuming, enrolling, retrying and skipping a wait can send, and need `automations:publish`."
url: https://www.unitpost.com/docs/api/automations
section: API reference
updated: 2026-12-01
---
# Automations

## Automations

> Event-driven journeys as versioned JSON graphs: create a draft (blank, from a blueprint, or with a full definition), validate it, publish it, and read the per-run step ledger. Ids are `atm_…` (automation) and `run_…` (run). Build in this order: `GET /automations/catalog` → `GET /automations/blueprints` → `GET /events/definitions` → `POST /automations` → `POST /automations/{id}/validate` → `POST /automations/{id}/simulate` → `POST /automations/{id}/publish`. Publishing, resuming, enrolling, retrying and skipping a wait can send, and need `automations:publish`.

Full schemas: [OpenAPI 3.1](https://www.unitpost.com/api/v1/openapi.json). HTML reference: https://www.unitpost.com/docs/automations#automations.

## Operations

### `GET /api/v1/automations`

List automations

Retrieve your workspace's automations (newest first) with status, live/total run counts, 30-day failure count, and the trigger that starts each one. Archived automations are hidden; `archived=true` lists only them, each with its `delete_after`. Deleted ones are never listed. Requires the `automations:read` capability.

Reference: https://www.unitpost.com/docs/automations/get-automations ([Markdown](https://www.unitpost.com/docs/automations/get-automations.md))

### `POST /api/v1/automations`

Create an automation draft

Create a DRAFT automation — blank, from a blueprint (`blueprint` + `blueprint_params`, see [List blueprints](https://www.unitpost.com/docs/automations/get-automations-blueprints)), or with a full `definition` graph (see [Block catalog](https://www.unitpost.com/docs/automations/get-automations-catalog) for every block's config and outputs). Nothing goes live until you call [Publish](https://www.unitpost.com/docs/automations/post-automations-id-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](https://www.unitpost.com/docs/automations/post-automations-id-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.

Reference: https://www.unitpost.com/docs/automations/post-automations ([Markdown](https://www.unitpost.com/docs/automations/post-automations.md))

### `GET /api/v1/automations/blueprints`

List blueprints

Pre-made journeys (welcome series, abandoned cart, win-back, …) you can create from, with the params each needs — template/topic/segment ids, event names, durations, and the universal `from` sending identity for any blueprint that sends email. Requires the `automations:read` capability.

Reference: https://www.unitpost.com/docs/automations/get-automations-blueprints ([Markdown](https://www.unitpost.com/docs/automations/get-automations-blueprints.md))

### `GET /api/v1/automations/catalog`

Block catalog

Every block kind an automation graph can contain: its config fields (required/optional, allowed values, meaning), its outputs (readable by later blocks as `steps.<node_id>.output.<key>`), and its outgoing handles — plus the condition operators and run-context path scopes. Read this before authoring a `definition`. With `automation_id` and `node_id` it adds `paths`: the exact data paths that block may read (your custom contact fields, the event's payload keys your backend has sent, earlier blocks' outputs). `limits` is every automation limit in force now (blocks per graph, action steps per run, runs per contact an hour, the frequency cap's defaults, the longest wait and run, runs in progress, backfill size and pace, archive retention, event names). Requires the `automations:read` capability.

Reference: https://www.unitpost.com/docs/automations/get-automations-catalog ([Markdown](https://www.unitpost.com/docs/automations/get-automations-catalog.md))

### `GET /api/v1/automations/{id}`

Retrieve an automation

The automation with its draft graph, the graph currently live (if published), and its policy. Requires the `automations:read` capability.

Reference: https://www.unitpost.com/docs/automations/get-automations-id ([Markdown](https://www.unitpost.com/docs/automations/get-automations-id.md))

### `PATCH /api/v1/automations/{id}`

Update an automation draft

Edit the name, description, DRAFT `definition`, or `policy`. Edits never change status or affect in-flight runs — publish to make them live. Validate first with [Validate](https://www.unitpost.com/docs/automations/post-automations-id-validate).

`definition` and `policy` each replace the stored value whole: read the automation first and send it back changed. A policy field left out goes back to its default, so a goal or re-entry you don't resend is dropped; leave `policy` out to keep it. Keep a block's `id` when you change its settings: on a live automation a new id is a removed block for the people waiting on it. An omitted `reEntry` goes back to the trigger's default. A draft saves even when it doesn't validate yet; check it with [Validate](https://www.unitpost.com/docs/automations/post-automations-id-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). Requires the `automations:write` capability.

Reference: https://www.unitpost.com/docs/automations/patch-automations-id ([Markdown](https://www.unitpost.com/docs/automations/patch-automations-id.md))

### `DELETE /api/v1/automations/{id}`

Delete an automation

Deletes the automation for good: it can't be undone, and it is gone from every list and read (its run history ages out as usual). To switch one off and keep it restorable, [archive](https://www.unitpost.com/docs/automations/post-automations-id-archive) it instead. An archived automation is deleted with whatever it still has going; any other is refused while runs are in progress: archive it (which cancels them) or cancel them first (`POST /automations/{id}/runs/cancel`). Pausing holds runs, it doesn't finish them. Requires the `automations:write` capability.

Reference: https://www.unitpost.com/docs/automations/delete-automations-id ([Markdown](https://www.unitpost.com/docs/automations/delete-automations-id.md))

### `POST /api/v1/automations/{id}/archive`

Archive an automation

Switches the automation off at once and keeps it restorable: nothing new starts, runs in progress are canceled (nothing more is sent to them; `canceled_runs` counts them), a running backfill stops (`backfill_stopped`), and it becomes read-only (edits, publish and resume answer 409 with `error.details[].code` `automation_archived`). It is deleted for good at `delete_after` (archive time plus the retention period, 30 days by default) unless [unarchived](https://www.unitpost.com/docs/automations/post-automations-id-unarchive) first. Archiving an archived automation changes nothing. Refused while Unitpost support has paused it. Requires the `automations:write` capability.

Reference: https://www.unitpost.com/docs/automations/post-automations-id-archive ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-archive.md))

### `POST /api/v1/automations/{id}/unarchive`

Unarchive an automation

Clears the archive and its `delete_after`. It comes back switched off and never sends by itself: `paused` when it was ever published ([resume](https://www.unitpost.com/docs/automations/post-automations-id-resume) it to send again), `draft` otherwise (publish it). Resume of a restored automation first re-checks every template, segment, topic, sender and endpoint it uses, and any billing, block, throttle or paused-stream pause it had when archived, and answers 409 while one holds. Runs the archive canceled stay canceled. Needs only `automations:write`, since it starts nothing. Requires the `automations:write` capability.

Reference: https://www.unitpost.com/docs/automations/post-automations-id-unarchive ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-unarchive.md))

### `POST /api/v1/automations/{id}/validate`

Validate an automation draft

Dry-run check of the draft: structure (block kinds, config, wiring, cycles, data paths) and dependency health (templates published, sender domains verified). `ok: true` means publish would succeed now, and `ok` is false exactly when `errors` isn't empty. Errors carry machine codes, node ids, and config paths so an agent can self-repair; warnings are advisory (readiness repeats them as `heads_up` items). A missing or not-yet-ready template, sender, segment or other reference is an error, under the code publish's 422 uses for it (`dependency_missing`, `dependency_unhealthy`, `dependency_wrong_type`, `condition_ref_missing`). Send a `definition` and/or `policy` to check a proposal instead of the stored draft: nothing is saved. A proposal is authoring, so it also needs `automations:write`.

`errors[].code` and `warnings[].code` are one of `unknown_kind`, `invalid_config`, `trigger_not_trigger`, `node_kind_is_trigger`, `duplicate_node_id`, `duplicate_edge_id`, `edge_unknown_from`, `edge_unknown_to`, `edge_unknown_handle`, `edge_duplicate_handle`, `edge_into_trigger`, `missing_handle_edge`, `orphan_node`, `cycle`, `trigger_disconnected`, `dependency_unavailable`, `path_unknown_scope`, `path_unknown_step`, `path_scope_unavailable`, `sms_quiet_hours`, `sms_variables_unmapped`, `email_variables_unmapped`, `sms_trigger_creates_contacts`, `sms_trigger_marketing_reply`, `wait_until_past`, `wait_until_contact_timezone`, `wait_too_long`, `path_outlives_run`, `run_lifetime_too_long`, `path_over_action_limit`, `webhook_secret_regenerate`, `event_data_secret`, `condition_ref_missing`, `wait_until_not_a_date`, `wait_until_field_unknown`, `template_type_mismatch`, `marketing_template_fixed_recipient`, `topic_needs_marketing_template` (and the reference codes above); each issue carries `node_id`, `edge_id`, `path` (the config field) and `handle` where they apply. `readiness` is the pre-publish checklist in plain words: `items[]` with `severity` (`blocker`, `needs_input`: it can go live but nothing happens until someone provides something, such as the event their backend hasn't sent yet or a number to send texts from, `heads_up`) and `owner` (`user`, `developer`, `agent`), plus `journey` (the graph in words with timings) and `testing`. Publish when `ok` and `readiness.ready` are both true. Requires the `automations:read` capability.

Reference: https://www.unitpost.com/docs/automations/post-automations-id-validate ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-validate.md))

### `GET /api/v1/automations/{id}/publish`

Preview a publish

What publishing the current draft would do to the people mid-journey: how many there are (they move to the new version at the block they're on), how many a pause holds and how many of those waited more than 7 days, and, for each block the draft removes, how many people are on it and where `move_to_next` would take them. When `removed_blocks` lists anyone, pass `removed_blocks` to Publish (it answers 409 without it). `backfill` (a segment or topic trigger): the latest backfill job with what it did, and with `?backfill=true` who a backfill would start now (`count`), who it skips and why, runs left, the cost past the included runs, and any `refusal`. Nothing changes. Requires the `automations:read` capability.

Reference: https://www.unitpost.com/docs/automations/get-automations-id-publish ([Markdown](https://www.unitpost.com/docs/automations/get-automations-id-publish.md))

### `POST /api/v1/automations/{id}/publish`

Publish an automation

Go live: snapshots the draft (graph + policy) into an immutable version and starts enrolling on the trigger. Everyone mid-journey moves to the new version at the block they're on (a wait already in progress keeps its end time). People on a block the new version removes move to the next block or end their run, as `removed_blocks` says; when anyone is on a removed block and `removed_blocks` is missing, the publish answers 409 listing them (read `GET` on this path first). Publishing a paused automation also continues the runs the pause held; a held message older than 7 days is not sent unless `send_stale` is true. `runs` in the response counts what happened. Send an `Idempotency-Key` to make retries return the same version. An automation whose trigger is a received email also needs `emails:read`: each run receives the email's text, which its blocks can pass on (403 `insufficient_scope` otherwise). A Call webhook block posts each run's contact email and trigger event to an outside URL, so publishing one also needs `contacts:read` and the trigger's own read capability (`emails:read` for any email trigger, `segments:read`, `topics:read`, …). An automation with an SMS step needs a plan that includes SMS (403 `limit_reached` with `feature_not_in_plan` on `smsChannel` otherwise). Requires the `automations:publish` capability.

Reference: https://www.unitpost.com/docs/automations/post-automations-id-publish ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-publish.md))

### `POST /api/v1/automations/{id}/pause`

Pause an automation

Stops new enrollments AND freezes in-flight runs where they are. Resume (or publish) continues them; a held message older than 7 days is not sent then (the run ends `stale_hold`) unless `send_stale` is true. Requires the `automations:write` capability.

Reference: https://www.unitpost.com/docs/automations/post-automations-id-pause ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-pause.md))

### `POST /api/v1/automations/{id}/resume`

Resume an automation

Back to live: enrollment restarts and every held run continues where it stopped. A held message older than 7 days is not sent (the run ends `stale_hold`) unless `send_stale` is true; the response's `runs` says how many continued and expired. Refused while the pause's cause still holds: a dependency still missing or not ready (a template deleted or no longer published, no SMS number that can send: fix it and resume, or point the block elsewhere and publish), or the cause of a `billing`, `blocked`, `throttled` or `sending_paused` pause (the message says why and when it resumes on its own). Requires the `automations:publish` capability.

Reference: https://www.unitpost.com/docs/automations/post-automations-id-resume ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-resume.md))

### `POST /api/v1/automations/{id}/unpublish`

Unpublish an automation

Take it off live without deleting: enrollment stops, versions and history are kept. On a live automation, runs in progress finish on their version. On a paused one, the runs the pause holds END by default (`held_runs: "end"`), so nothing more is sent to those people; `held_runs: "release"` lets them finish instead, and is refused (409) while the pause's cause still holds, as Resume is. `runs` in the response counts what happened. A staff pause can't be unpublished. Publish again to relaunch. Requires the `automations:publish` capability.

Reference: https://www.unitpost.com/docs/automations/post-automations-id-unpublish ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-unpublish.md))

### `GET /api/v1/automations/{id}/runs`

List runs

The execution ledger for one automation, newest first. Filter with `status` (a run status, or the groups `live` / `problems`), `block` (the runs at a block now, or that failed at it; each run's `at_block_id`) and `backfill` (the runs one backfill started). Pages like every list: while `has_more`, pass the last run's `id` as `after` for the next (older) page; `before` with the first run's `id` goes back. Runs that started on the same instant are never skipped or repeated. Requires the `automations:read` capability.

Reference: https://www.unitpost.com/docs/automations/get-automations-id-runs ([Markdown](https://www.unitpost.com/docs/automations/get-automations-id-runs.md))

### `POST /api/v1/automations/{id}/runs`

Enroll a contact (manual trigger)

Start one run for one contact. Only for an automation published with the manual-enrollment trigger — anything else is driven by the event it listens for, and is refused here. Send exactly one of `contact_id` or `email`; add an `idempotency_key` so a retry can't start a second run.

Returns **202**: enrollment is asynchronous, and the automation's own policy (re-entry rules, per-contact concurrency, active-run ceiling) may still decline it, as does `no_consent`: every message the journey could send would be skipped for this contact by consent, so no run starts and nothing is billed (`guard_trips.no_consent` in the stats). Preview an enrollment says which beforehand. Poll `GET` on this same path to see the run. Requires the `automations:publish` capability.

Reference: https://www.unitpost.com/docs/automations/post-automations-id-runs ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-runs.md))

### `POST /api/v1/automations/{id}/runs/preview`

Preview an enrollment

Would enrolling this contact (`contact_id` or `email`, as the enroll takes) start a run now, and if not, which check stops it: the automation isn't live, its trigger isn't manual enrollment, no such contact, a run already in progress, re-entry, every message would be skipped for them by consent (`no_consent`), the hourly run rate, or the automation's or the workspace's live-run ceiling. Nothing is written. Read it before enrolling: the enroll is accepted asynchronously and may still be declined. Also needs `contacts:read`. Requires the `automations:read` capability.

Reference: https://www.unitpost.com/docs/automations/post-automations-id-runs-preview ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-runs-preview.md))

### `GET /api/v1/automations/runs/{run_id}`

Retrieve a run

One run with its step timeline — every executed block with status, output (branch taken, email id, skip reason; ids prefixed, so a send's `message_id` is the `email_…` or `sms_…` id [Retrieve an email](https://www.unitpost.com/docs/email/get-email-id) takes), error, and timing — plus where a live run is now (`current_node_id`, `waiting`), the block a failed run stopped at, the event that started it (`trigger`) and the graph of the version it runs on (`definition`). Answers "why didn't this contact get the email?". Another resource's content (an inbound email's text, the contact's email) needs that resource's read scope too. Requires the `automations:read` capability.

Reference: https://www.unitpost.com/docs/automations/get-automations-runs-run-id ([Markdown](https://www.unitpost.com/docs/automations/get-automations-runs-run-id.md))

### `POST /api/v1/automations/runs/{run_id}/cancel`

Cancel a run

Stop one live run: its timers are cancelled and no further step executes. Terminal runs return 409. Requires the `automations:write` capability.

Reference: https://www.unitpost.com/docs/automations/post-automations-runs-run-id-cancel ([Markdown](https://www.unitpost.com/docs/automations/post-automations-runs-run-id-cancel.md))

### `POST /api/v1/automations/runs/{run_id}/skip-wait`

Skip a run's wait

End one waiting run's wait now, as the run inspector's Skip wait does: a Wait continues with its next block, a Wait for event takes its Timeout path, on the engine's next timer tick. A run that isn't waiting on a wait block, a paused automation, or a wait already ending is a 409. Takes no body. Requires the `automations:publish` capability.

Reference: https://www.unitpost.com/docs/automations/post-automations-runs-run-id-skip-wait ([Markdown](https://www.unitpost.com/docs/automations/post-automations-runs-run-id-skip-wait.md))

### `POST /api/v1/automations/runs/{run_id}/retry`

Retry a failed run

Continue one failed run from the block that failed, in the same run, on the live version (as the Runs tab's Retry). Blocks that already ran are not repeated, and a message the failed attempt actually sent is recorded, never sent again. 409 when the run isn't failed, didn't fail at a block, the automation isn't live, the run's time limit passed, or the person is mid-journey in another run. Takes no body. Requires the `automations:publish` capability.

Reference: https://www.unitpost.com/docs/automations/post-automations-runs-run-id-retry ([Markdown](https://www.unitpost.com/docs/automations/post-automations-runs-run-id-retry.md))

### `POST /api/v1/automations/{id}/runs/retry`

Retry failed runs

Retry every run of the automation that failed at or after `since`, newest first, up to 200 per call. Each run continues as Retry a failed run does. Runs that can't continue are counted in `skipped` by reason and passed over; `remaining` counts the failed runs the call didn't reach, and passing `next_cursor` back as `cursor` continues after them. Repeating the call retries nothing new. Requires the `automations:publish` capability.

Reference: https://www.unitpost.com/docs/automations/post-automations-id-runs-retry ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-runs-retry.md))

### `POST /api/v1/automations/{id}/runs/cancel`

Cancel live runs

Stop the automation's live runs in one call: all of them (`status: live`, the default) or only `active` or `waiting` ones. Their timers are cancelled and nothing more executes for them. Cancel them before deleting an automation that still has runs in progress. With `contact_id`, only that contact's runs stop (naming a contact also needs `contacts:read`); to stop a contact in every automation, use [Cancel a contact's automation runs](https://www.unitpost.com/docs/automations/post-contacts-id-automation-runs-cancel). Requires the `automations:write` capability.

Reference: https://www.unitpost.com/docs/automations/post-automations-id-runs-cancel ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-runs-cancel.md))

### `POST /api/v1/automations/{id}/simulate`

Dry-run an automation

Walk the draft (or `version: live`) for one contact and say which messages they'd get, when, and which branches they'd take, as the builder's test does. Pass a real contact (`email` or `contact_id`, which also needs `contacts:read`) or a made-up one (`contact` fields), and `event_data` for a custom event's payload. Nothing is sent and nothing changes. Requires the `automations:read` capability.

Reference: https://www.unitpost.com/docs/automations/post-automations-id-simulate ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-simulate.md))

### `GET /api/v1/automations/{id}/stats`

Retrieve an automation's stats

How the automation is running, the numbers the builder shows: runs by status over a window (the runs that started in the last `days` days) and over its lifetime (runs retention has deleted included), the goal rate, and for each block of the live version the runs that entered, succeeded, failed and were skipped (by reason), the runs waiting there now, the runs that failed there in the window, and how long it takes (a wait: how long runs waited). While the workspace's marketing email is paused, `runs.held_marketing` counts the runs waiting at a marketing email: they send once it is resumed (after 7 days they end unsent), and the automation keeps running. Block counts start over when you publish a new version. Counts only. To see the runs themselves, filter [List runs](https://www.unitpost.com/docs/automations/get-automations-id-runs) by `status` or `block`. Requires the `automations:read` capability.

Reference: https://www.unitpost.com/docs/automations/get-automations-id-stats ([Markdown](https://www.unitpost.com/docs/automations/get-automations-id-stats.md))

### `GET /api/v1/contacts/{id}/automation-runs`

List a contact's automation runs

One contact's runs across every automation, as the contact page shows them: the runs in progress first (newest first, up to 20, `has_more` when there are more), then the latest 10 finished ones (finished runs are kept 30 days on Free, 90 otherwise). Each names its automation and the block it waits at, runs next or failed at. `{id}` is the contact's id or email. Open one with [Retrieve a run](https://www.unitpost.com/docs/automations/get-automations-runs-run-id). Also needs `contacts:read`. Requires the `automations:read` capability.

Reference: https://www.unitpost.com/docs/automations/get-contacts-id-automation-runs ([Markdown](https://www.unitpost.com/docs/automations/get-contacts-id-automation-runs.md))

### `POST /api/v1/contacts/{id}/automation-runs/cancel`

Cancel a contact's automation runs

Stop one contact's live runs in every automation, or only in `automation_ids`: someone asked you to stop, got a refund, or opened a support case. Their timers are cancelled and nothing more is sent to them by those runs; the automations stay live for everyone else (a later trigger can start them again, so add an exit rule or update the contact when that must not happen). `{id}` is the contact's id or email. The runs it stops are the ones [List a contact's automation runs](https://www.unitpost.com/docs/automations/get-contacts-id-automation-runs) shows in progress. Also needs `contacts:read` (it names a contact). Requires the `automations:write` capability.

Reference: https://www.unitpost.com/docs/automations/post-contacts-id-automation-runs-cancel ([Markdown](https://www.unitpost.com/docs/automations/post-contacts-id-automation-runs-cancel.md))

## Related

- [SMS](https://www.unitpost.com/docs/api/sms): Send transactional and marketing SMS, and track each message's delivery lifecycle. Marketing sends require recipient consent and honor recipient-local quiet hours. Included on paid plans: on the free plan, `POST /sms` returns `403` with `limit_reached` and `feature_not_in_plan` on `smsChannel` in `error.details[]`. Each segment is billed from the workspace's monthly sending allowance at the recipient country's published rate.
- [SMS templates](https://www.unitpost.com/docs/api/sms-templates): Reusable plain-text SMS bodies with per-recipient `{{variables}}`. Draft → published like email templates; only published templates can be sent by an SMS campaign.
- [SMS messaging programs](https://www.unitpost.com/docs/api/sms-messaging-programs): What your SMS registrations are built from: the reusable purpose, opt-in, help and stop copy and sample messages a registration copies when a person submits it. Writing a program never changes a registration. Registrations, vetting and numbers are bought through a quote and its confirm (`sms:purchase`, within the owner's monthly API spend cap); identity documents, a toll-free number and releasing a number stay in the dashboard.
