# Retry a batch's failed rows

> POST /api/v1/bulk-batches/{id}/retry-failed: Retry a batch's failed rows.

`POST https://appliflo.com/api/v1/bulk-batches/{id}/retry-failed`

Every failed row goes back in the queue with fresh attempts. Safe to repeat: queued and sent rows are never touched, and no envelope is sent twice.

Send your API key in the `Authorization: Bearer` header. Every response is JSON: `{ success, data, error }`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | batch_id from POST /templates/{id}/bulk |

## Responses

| Status | Description |
| --- | --- |
| 200 | How many rows were requeued. |
| 401 | Missing or invalid API key, or `api_key_expired` for a key past its expiry. |
| 403 | The API key's workspace does not have access to this resource, or `insufficient_scope` (with `required_scope`) for a key without the scope this route needs. |
| 404 | Resource not found in this workspace. |
| 422 | Request failed validation. |
| 500 | Internal error. |

## 200 response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | true | yes |  |
| `data` | object | yes |  |
| `data.batch_id` | string | yes |  |
| `data.requeued` | integer | yes | At least 0 |

See also: [Errors](https://dev.appliflo.com/guides/errors), [Rate limits](https://dev.appliflo.com/guides/rate-limits), [Idempotency](https://dev.appliflo.com/guides/idempotency).
