> ## 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.

# Levering opnieuw verzenden

> Een webhooklevering opnieuw verzenden

Verstuur een levering opnieuw, ongeacht de status. Aniva stuurt hetzelfde event met hetzelfde `webhook-id`
en start het herhalingsschema opnieuw.

> [!NOTE]
>
> Vereist de scope `webhooks_manage`.

## Verzoek

### Padparameters

**id** `string` *required*

Webhook-identifier (UUID).

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

Leverings-ID (UUID), uit [Leveringen weergeven](https://docs.anivahealth.com/nl/api/webhooks/list-deliveries.md).

## Respons

Bij succes geeft de API `202 Accepted` terug met de levering. De `status` is `pending`.

**id** `string` *required*

Leverings-ID (UUID). Eén levering stuurt één event naar één webhook.

**event** `object` *required*

Het event precies zoals verzonden in de requestbody. Zie [Payload](https://docs.anivahealth.com/nl/concepts/webhooks.md#payload).

**status** `string` *required*

`pending`, `succeeded`, `failed` (alle pogingen zijn mislukt of het endpoint antwoordde met `410 Gone`) of
`cancelled` (de webhook werd uitgeschakeld terwijl deze in afwachting was).

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

Aantal pogingen tot nu toe. Opnieuw verzenden begint weer bij `0`.

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

ISO 8601 UTC-tijdstip van de volgende poging. `null` als er geen poging is gepland.

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

ISO 8601 UTC-tijdstip van de laatste poging. Kan `null` zijn.

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

HTTP-status van de laatste poging. `null` als er geen antwoord kwam, bijvoorbeeld bij een time-out.

**last\_error** `string`

Een netwerkfout, of de status en het begin van de responsebody. `null` als het is gelukt.

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

De laatste 20 pogingen, oudste eerst. Elke poging heeft `at`, `status` (HTTP-status of `null`), `duration_ms`
en `error`.

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

ISO 8601 UTC-tijdstip waarop de levering is aangemaakt.

## Foutresponsen

| Status | Beschrijving |
| - | - |
| `400` | Ongeldig verzoek. Zie de `error`-melding. |
| `401` | Ongeldige API-sleutel. |
| `403` | Geen API-sleutel, of een API-sleutel zonder de scope `webhooks_manage`. |
| `404` | Webhook of levering niet gevonden, of de webhook hoort bij een andere API-sleutel. |
| `409` | Er loopt al een poging voor deze levering: probeer het over twee minuten opnieuw. Of de webhook is uitgeschakeld: schakel deze eerst in. |
| `500` | Interne serverfout. |

```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.