Retrieve an automation
GET/api/v1/automations/{id}
GET /automations/{id}
curl -X GET 'https://www.unitpost.com/api/v1/automations/atm_123' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'User-Agent: my-app/1.0'Response · 200
{
"object": "automation",
"id": "id_123",
"name": "Example",
"description": "string",
"status": "draft",
"pause_reason": "user",
"published_version": 0,
"has_draft_changes": false,
"trigger": {
"kind": "string",
"config": {}
},
"active_runs": 0,
"total_runs": 1,
"failed_runs_30d": 0,
"last_run_at": "2026-01-01T00:00:00.000Z",
"archived_at": "2026-01-01T00:00:00.000Z",
"delete_after": "string",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"heads_up": [
{
"code": "sender_not_an_address",
"node_id": "node_123",
"field": "string",
"resource_type": "template",
"value": "string",
"message": "string"
}
],
"warnings": [
"string"
],
"generated_secrets": [
{
"node_id": "node_123",
"secret": "string"
}
],
"draft_definition": {
"schemaVersion": 1,
"trigger": {
"id": "id_123",
"kind": "string",
"label": "string",
"config": {}
},
"nodes": [
{
"id": "id_123",
"kind": "string",
"label": "string",
"config": {}
}
],
"edges": [
{
"id": "id_123",
"from": "you@yourdomain.com",
"fromHandle": "string",
"to": "customer@example.com"
}
],
"layout": {}
},
"published_definition": {
"schemaVersion": 1,
"trigger": {
"id": "id_123",
"kind": "string",
"label": "string",
"config": {}
},
"nodes": [
{
"id": "id_123",
"kind": "string",
"label": "string",
"config": {}
}
],
"edges": [
{
"id": "id_123",
"from": "you@yourdomain.com",
"fromHandle": "string",
"to": "customer@example.com"
}
],
"layout": {}
},
"policy": {
"reEntry": "never",
"reEntryInterval": "string",
"maxConcurrentRunsPerSubject": 0,
"maxActiveRuns": 10000,
"maxStepsPerRun": 0,
"maxSendsPerSubjectPerDay": 0,
"maxSmsPerSubjectPerDay": 0,
"maxRunDuration": "string",
"quietHours": {
"start": "string",
"end": "string",
"tz": "contact",
"timezone": "string"
},
"exitConditions": {},
"goal": {
"eventType": "string",
"filter": {},
"window": "string"
},
"onError": "pause_run"
},
"policy_defaults": [
"string"
]
}The automation with its draft graph, the graph currently live (if published), and its policy. Requires the automations:read capability.
Parameters1 field
| Field | Type | Description |
|---|---|---|
idrequired | string · path | — |
Response · 200 fields24 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. |
draft_definitionrequired | object | null | — |
published_definitionrequired | object | null | — |
policyrequired | object | — |
policy_defaults | string[] | The `policy` fields this automation didn't set: their values come from defaults (the trigger's, the graph's, or the platform limits) and move when those do. Sending one back in `policy` makes it a choice: it stops following the default, and on a custom event a `maxConcurrentRunsPerSubject` sent back answers readiness `runs_per_person` though nobody was asked. To change other settings, send the policy without these fields. |
200401403404