---
title: "Enroll a contact (manual trigger)"
description: "Start one run for one contact. `POST /api/v1/automations/{id}/runs`"
url: https://www.unitpost.com/docs/automations/post-automations-id-runs
section: "Automations API reference"
updated: 2026-12-01
---
# Enroll a contact (manual trigger)

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

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.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | — |

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `contact_id` | string | no | The contact to enroll (`con_…`). |
| `email` | string | no | Or the contact to enroll, by email address. |
| `idempotency_key` | string | no | Retries with the same key enroll once. |

## Response fields (202)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | — |
| `accepted` | boolean | yes | — |
| `automation_id` | string | yes | — |
| `contact_id` | string | yes | — |
| `event_id` | string | yes | — |

## Responses

| Status | Description |
| --- | --- |
| 202 | The enrollment was accepted. |
| 401 | Missing or invalid API key. |
| 403 | Insufficient scope. |
| 404 | Automation or contact not found. |
| 409 | Not active, or its trigger is not manual enrollment. |
| 422 | Provide exactly one of `contact_id` or `email`. |
| 502 | The enrollment could not be queued. |

## Example request

```bash
curl -X POST 'https://www.unitpost.com/api/v1/automations/atm_123/runs' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0' \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "sam@acme.com",
    "idempotency_key": "enroll-sam-2026-11-02"
  }'
```

## Example response (202)

```json
{
  "object": "automation_enrollment",
  "accepted": true,
  "automation_id": "automation_123",
  "contact_id": "contact_123",
  "event_id": "event_123"
}
```

## Links

- HTML reference (with Node.js, Python, Ruby, PHP, Laravel, Go, Java, Rust, .NET and CLI examples): https://www.unitpost.com/docs/automations/post-automations-id-runs
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
