> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anivahealth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Reenviar entrega

> Volver a enviar una entrega de webhook

Vuelve a enviar una entrega, sea cual sea su estado. Aniva envía el mismo evento con el mismo `webhook-id`
y reinicia la programación de reintentos.

> [!NOTE]
>
> Requiere el scope `webhooks_manage`.

## Solicitud

### Parámetros de ruta

**id** `string` *required*

Identificador del webhook (UUID).

**delivery\_id** `string` *required*

Identificador de la entrega (UUID), de [Listar entregas](https://docs.anivahealth.com/es/api/webhooks/list-deliveries.md).

## Respuesta

Si la petición tiene éxito, la API devuelve `202 Accepted` con la entrega. Su `status` es `pending`.

**id** `string` *required*

Identificador de la entrega (UUID). Una entrega envía un evento a un webhook.

**event** `object` *required*

El evento exactamente como se envió en el cuerpo de la petición. Consulta [Payload](https://docs.anivahealth.com/es/concepts/webhooks.md#payload).

**status** `string` *required*

`pending`, `succeeded`, `failed` (todos los intentos fallaron o el endpoint respondió `410 Gone`) o
`cancelled` (el webhook se desactivó mientras estaba pendiente).

**attempt\_count** `integer` *required*

Intentos realizados hasta ahora. Un reenvío vuelve a empezar en `0`.

**next\_attempt\_at** `string`

Instante UTC en formato ISO 8601 del próximo intento. `null` cuando no hay ningún intento programado.

**last\_attempt\_at** `string`

Instante UTC en formato ISO 8601 del último intento. Puede ser `null`.

**last\_response\_status** `integer`

Estado HTTP del último intento. `null` cuando no llegó respuesta, por ejemplo, si se agotó el tiempo de espera.

**last\_error** `string`

Un error de red, o el estado y el inicio del cuerpo de la respuesta. `null` tras completarse con éxito.

**attempts** `object[]` *required*

Los últimos 20 intentos, los más antiguos primero. Cada uno tiene `at`, `status` (estado HTTP o `null`), `duration_ms`
y `error`.

**created\_at** `string` *required*

Instante UTC en formato ISO 8601 en el que se creó la entrega.

## Respuestas de error

| Estado | Descripción |
| - | - |
| `400` | Petición no válida. Consulta el mensaje de `error`. |
| `401` | Clave de API no válida. |
| `403` | Sin clave de API, o una clave de API sin el scope `webhooks_manage`. |
| `404` | No se encontró el webhook o la entrega, o el webhook pertenece a otra clave de API. |
| `409` | Hay un intento de esta entrega en curso: vuelve a intentarlo en dos minutos. O el webhook está desactivado: actívalo primero. |
| `500` | Error interno del servidor. |

```bash cURL theme={null}
curl --request POST \
  --url https://anivahealth.com/api/v1/webhooks/4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d/deliveries/7c9e1a3b-5d7f-4b2d-9e4a-6c8e0a2b4d6f/resend \
  --header 'x-api-key: YOUR_API_KEY'
```

```json 202 theme={null}
{
  "id": "7c9e1a3b-5d7f-4b2d-9e4a-6c8e0a2b4d6f",
  "event": {
    "id": "0b8e6f3a-2c4d-4e7f-9a1b-3c5d7e9f1a2b",
    "type": "appointment.confirmed",
    "timestamp": "2026-10-15T09:12:44.512Z",
    "data": {
      "object": "appointment",
      "id": "c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a",
      "url": "https://anivahealth.com/api/v1/appointments/c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a",
      "status": "confirmed",
      "previous_status": "pending",
      "status_revision": 2
    }
  },
  "status": "pending",
  "attempt_count": 0,
  "next_attempt_at": "2026-10-16T10:00:00.000Z",
  "last_attempt_at": "2026-10-15T09:13:06.000Z",
  "last_response_status": 204,
  "last_error": null,
  "attempts": [
    {
      "at": "2026-10-15T09:13:01.000Z",
      "status": 503,
      "duration_ms": 412,
      "error": "HTTP 503: Service Unavailable"
    },
    {
      "at": "2026-10-15T09:13:06.000Z",
      "status": 204,
      "duration_ms": 88,
      "error": null
    }
  ],
  "created_at": "2026-10-15T09:13:00.000Z"
}
```

```json 404 theme={null}
{
  "error": "Delivery not found"
}
```

```json 409 theme={null}
{
  "error": "An attempt is running. Try again in two minutes."
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.