---
title: "Retry failed runs"
description: "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`"
url: https://www.unitpost.com/docs/automations/post-automations-id-runs-retry
section: "Automations API reference"
updated: 2026-12-01
---
# Retry failed runs

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

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.

## Parameters

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

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `since` | string | yes | Retry runs that failed at or after this time (ISO 8601). |
| `limit` | integer | no | Most runs to retry in this call (default and max 200). |
| `cursor` | string | no | `next_cursor` from the previous call: continue past the runs it looked at. |

## Response fields (200)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | — |
| `retried` | integer | yes | — |
| `skipped` | object | yes | Runs 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`. |
| `remaining` | integer | yes | Failed runs in range this call didn't reach. Call again with `next_cursor` to retry them. |
| `next_cursor` | string \| null | yes | Pass as `cursor` to continue; null when every failed run in range was looked at. |

## Responses

| Status | Description |
| --- | --- |
| 200 | What was retried. |
| 401 | Missing or invalid API key. |
| 403 | Insufficient scope. |
| 404 | Automation not found. |
| 409 | The automation is paused or not published. |
| 422 | A missing or bad `since`, or an unknown key. |

## Example request

```bash
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
  }'
```

## Example response (200)

```json
{
  "object": "automation_runs_retry",
  "retried": 0,
  "skipped": {},
  "remaining": 0,
  "next_cursor": "string"
}
```

## 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-retry
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
