---
title: "Automations docs"
description: "A one-minute start and every Automations and Events API call."
url: https://www.unitpost.com/docs/automations
section: "Automations docs"
updated: 2026-12-02
---

# Automations docs

> A one-minute start and every Automations and Events API call.

HTML hub: https://www.unitpost.com/docs/automations

- [Automations API quickstart](https://www.unitpost.com/docs/automations/start): A draft from a blueprint, validated and published, then the event that starts it and the runs it makes. ([Markdown](https://www.unitpost.com/docs/automations/start.md))
- [List automations (`GET /automations`)](https://www.unitpost.com/docs/automations/get-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. `GET /api/v1/automations` ([Markdown](https://www.unitpost.com/docs/automations/get-automations.md))
- [Create an automation draft (`POST /automations`)](https://www.unitpost.com/docs/automations/post-automations): 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). `POST /api/v1/automations` ([Markdown](https://www.unitpost.com/docs/automations/post-automations.md))
- [List blueprints (`GET /automations/blueprints`)](https://www.unitpost.com/docs/automations/get-automations-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. `GET /api/v1/automations/blueprints` ([Markdown](https://www.unitpost.com/docs/automations/get-automations-blueprints.md))
- [Block catalog (`GET /automations/catalog`)](https://www.unitpost.com/docs/automations/get-automations-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. `GET /api/v1/automations/catalog` ([Markdown](https://www.unitpost.com/docs/automations/get-automations-catalog.md))
- [Retrieve an automation (`GET /automations/{id}`)](https://www.unitpost.com/docs/automations/get-automations-id): The automation with its draft graph, the graph currently live (if published), and its policy. `GET /api/v1/automations/{id}` ([Markdown](https://www.unitpost.com/docs/automations/get-automations-id.md))
- [Update an automation draft (`PATCH /automations/{id}`)](https://www.unitpost.com/docs/automations/patch-automations-id): Edit the name, description, DRAFT definition, or policy. `PATCH /api/v1/automations/{id}` ([Markdown](https://www.unitpost.com/docs/automations/patch-automations-id.md))
- [Delete an automation (`DELETE /automations/{id}`)](https://www.unitpost.com/docs/automations/delete-automations-id): 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). `DELETE /api/v1/automations/{id}` ([Markdown](https://www.unitpost.com/docs/automations/delete-automations-id.md))
- [Archive an automation (`POST /automations/{id}/archive`)](https://www.unitpost.com/docs/automations/post-automations-id-archive): 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). `POST /api/v1/automations/{id}/archive` ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-archive.md))
- [Unarchive an automation (`POST /automations/{id}/unarchive`)](https://www.unitpost.com/docs/automations/post-automations-id-unarchive): Clears the archive and its delete_after. `POST /api/v1/automations/{id}/unarchive` ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-unarchive.md))
- [Validate an automation draft (`POST /automations/{id}/validate`)](https://www.unitpost.com/docs/automations/post-automations-id-validate): Dry-run check of the draft: structure (block kinds, config, wiring, cycles, data paths) and dependency health (templates published, sender domains verified). `POST /api/v1/automations/{id}/validate` ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-validate.md))
- [Preview a publish (`GET /automations/{id}/publish`)](https://www.unitpost.com/docs/automations/get-automations-id-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. `GET /api/v1/automations/{id}/publish` ([Markdown](https://www.unitpost.com/docs/automations/get-automations-id-publish.md))
- [Publish an automation (`POST /automations/{id}/publish`)](https://www.unitpost.com/docs/automations/post-automations-id-publish): Go live: snapshots the draft (graph + policy) into an immutable version and starts enrolling on the trigger. `POST /api/v1/automations/{id}/publish` ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-publish.md))
- [Pause an automation (`POST /automations/{id}/pause`)](https://www.unitpost.com/docs/automations/post-automations-id-pause): Stops new enrollments AND freezes in-flight runs where they are. `POST /api/v1/automations/{id}/pause` ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-pause.md))
- [Resume an automation (`POST /automations/{id}/resume`)](https://www.unitpost.com/docs/automations/post-automations-id-resume): Back to live: enrollment restarts and every held run continues where it stopped. `POST /api/v1/automations/{id}/resume` ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-resume.md))
- [Unpublish an automation (`POST /automations/{id}/unpublish`)](https://www.unitpost.com/docs/automations/post-automations-id-unpublish): Take it off live without deleting: enrollment stops, versions and history are kept. `POST /api/v1/automations/{id}/unpublish` ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-unpublish.md))
- [List runs (`GET /automations/{id}/runs`)](https://www.unitpost.com/docs/automations/get-automations-id-runs): The execution ledger for one automation, newest first. `GET /api/v1/automations/{id}/runs` ([Markdown](https://www.unitpost.com/docs/automations/get-automations-id-runs.md))
- [Enroll a contact (manual trigger) (`POST /automations/{id}/runs`)](https://www.unitpost.com/docs/automations/post-automations-id-runs): Start one run for one contact. `POST /api/v1/automations/{id}/runs` ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-runs.md))
- [Preview an enrollment (`POST /automations/{id}/runs/preview`)](https://www.unitpost.com/docs/automations/post-automations-id-runs-preview): 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. `POST /api/v1/automations/{id}/runs/preview` ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-runs-preview.md))
- [Retrieve a run (`GET /automations/runs/{run_id}`)](https://www.unitpost.com/docs/automations/get-automations-runs-run-id): 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 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). `GET /api/v1/automations/runs/{run_id}` ([Markdown](https://www.unitpost.com/docs/automations/get-automations-runs-run-id.md))
- [Cancel a run (`POST /automations/runs/{run_id}/cancel`)](https://www.unitpost.com/docs/automations/post-automations-runs-run-id-cancel): Stop one live run: its timers are cancelled and no further step executes. `POST /api/v1/automations/runs/{run_id}/cancel` ([Markdown](https://www.unitpost.com/docs/automations/post-automations-runs-run-id-cancel.md))
- [Skip a run's wait (`POST /automations/runs/{run_id}/skip-wait`)](https://www.unitpost.com/docs/automations/post-automations-runs-run-id-skip-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. `POST /api/v1/automations/runs/{run_id}/skip-wait` ([Markdown](https://www.unitpost.com/docs/automations/post-automations-runs-run-id-skip-wait.md))
- [Retry a failed run (`POST /automations/runs/{run_id}/retry`)](https://www.unitpost.com/docs/automations/post-automations-runs-run-id-retry): Continue one failed run from the block that failed, in the same run, on the live version (as the Runs tab's Retry). `POST /api/v1/automations/runs/{run_id}/retry` ([Markdown](https://www.unitpost.com/docs/automations/post-automations-runs-run-id-retry.md))
- [Retry failed runs (`POST /automations/{id}/runs/retry`)](https://www.unitpost.com/docs/automations/post-automations-id-runs-retry): Retry every run of the automation that failed at or after since, newest first, up to 200 per call. `POST /api/v1/automations/{id}/runs/retry` ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-runs-retry.md))
- [Cancel live runs (`POST /automations/{id}/runs/cancel`)](https://www.unitpost.com/docs/automations/post-automations-id-runs-cancel): Stop the automation's live runs in one call: all of them (status: live, the default) or only active or waiting ones. `POST /api/v1/automations/{id}/runs/cancel` ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-runs-cancel.md))
- [Dry-run an automation (`POST /automations/{id}/simulate`)](https://www.unitpost.com/docs/automations/post-automations-id-simulate): 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. `POST /api/v1/automations/{id}/simulate` ([Markdown](https://www.unitpost.com/docs/automations/post-automations-id-simulate.md))
- [Retrieve an automation's stats (`GET /automations/{id}/stats`)](https://www.unitpost.com/docs/automations/get-automations-id-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). `GET /api/v1/automations/{id}/stats` ([Markdown](https://www.unitpost.com/docs/automations/get-automations-id-stats.md))
- [List a contact's automation runs (`GET /contacts/{id}/automation-runs`)](https://www.unitpost.com/docs/automations/get-contacts-id-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). `GET /api/v1/contacts/{id}/automation-runs` ([Markdown](https://www.unitpost.com/docs/automations/get-contacts-id-automation-runs.md))
- [Cancel a contact's automation runs (`POST /contacts/{id}/automation-runs/cancel`)](https://www.unitpost.com/docs/automations/post-contacts-id-automation-runs-cancel): 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. `POST /api/v1/contacts/{id}/automation-runs/cancel` ([Markdown](https://www.unitpost.com/docs/automations/post-contacts-id-automation-runs-cancel.md))
- [Emit a custom event (`POST /events`)](https://www.unitpost.com/docs/automations/post-events): Send a custom event from your backend onto the Unitpost event bus — e.g. `POST /api/v1/events` ([Markdown](https://www.unitpost.com/docs/automations/post-events.md))
- [List event definitions (`GET /events/definitions`)](https://www.unitpost.com/docs/automations/get-events-definitions): The custom events your backend has sent: each name, when it was last seen, and the top-level payload keys seen with it (read as event.data.<key>; keys and types only, never values). `GET /api/v1/events/definitions` ([Markdown](https://www.unitpost.com/docs/automations/get-events-definitions.md))
