Retry failed runs

Retry failed runs

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

POST /automations/{id}/runs/retry
curl -X POST 'https://www.unitpost.com/api/v1/automations/atm_123/runs/retry' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0' \
  -H 'Content-Type: application/json' \
  -d '{
    "since": "2026-11-01T00:00:00Z",
    "limit": 50
  }'
Response · 200
{
  "object": "automation_runs_retry",
  "retried": 0,
  "skipped": {},
  "remaining": 0,
  "next_cursor": "string"
}

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.

Parameters1 field
FieldTypeDescription
idrequiredstring · path—
Request body3 fields
FieldTypeDescription
sincerequiredstringRetry runs that failed at or after this time (ISO 8601).
limitintegerMost runs to retry in this call (default and max 200).
cursorstring`next_cursor` from the previous call: continue past the runs it looked at.
Response · 200 fields5 fields
FieldTypeDescription
objectrequiredstring—
retriedrequiredinteger—
skippedrequiredobjectRuns that can't continue, by reason: `in_progress` (the person, or a contact-less automation, has a run in progress; retry once it ends), `already_ran` (the run is past that block), `block_removed` (the live version removed the block and nothing follows), `run_expired` (past its time limit), `not_live`, `not_failed`, `not_retryable`.
remainingrequiredintegerFailed runs in range this call didn't reach. Call again with `next_cursor` to retry them.
next_cursorrequiredstring | nullPass as `cursor` to continue; null when every failed run in range was looked at.
200401403404409422

Search docs and guides

Search the docs and product guides.