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

# Prikaži isporuke

> Prikaži pokušaje isporuke webhooka

Prikaži isporuke jednog webhooka, od najnovijih, sa svakim pokušajem i HTTP statusom kojim je tvoja
krajnja točka odgovorila.

> [!NOTE]
>
> Zahtijeva scope `webhooks_manage`.

## Zahtjev

### Parametri putanje

**id** `string` *required*

Identifikator webhooka (UUID).

### Parametri upita

**status** `string`

Samo isporuke u ovom statusu: `pending`, `succeeded`, `failed` ili `cancelled`.

**limit** `integer` (default: 20)

Najveći broj isporuka koji se vraća, od 1 do 100.

**before** `string`

ID isporuke ovog webhooka. Proslijedi zadnji `id` stranice za dohvat sljedeće stranice.

## Odgovor

U slučaju uspjeha API vraća `200 OK`.

**data** `object[]` *required*

Isporuke, od najnovijih.

**isporuka**

**id** `string` *required*

Identifikator isporuke (UUID). Jedna isporuka šalje jedan događaj jednom webhooku.

**event** `object` *required*

Događaj točno onako kako je poslan u tijelu zahtjeva. Pogledaj [Sadržaj](https://docs.anivahealth.com/hr/concepts/webhooks.md#payload).

**status** `string` *required*

`pending`, `succeeded`, `failed` (svi pokušaji nisu uspjeli ili je krajnja točka odgovorila s `410 Gone`) ili
`cancelled` (webhook je onemogućen dok je isporuka bila na čekanju).

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

Dosad izvršeni pokušaji. Ponovno slanje opet počinje od `0`.

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

ISO 8601 UTC trenutak sljedećeg pokušaja. `null` kada nijedan pokušaj nije planiran.

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

ISO 8601 UTC trenutak zadnjeg pokušaja. Može biti `null`.

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

HTTP status zadnjeg pokušaja. `null` kada nije stigao odgovor, na primjer zbog isteka vremena.

**last\_error** `string`

Mrežna pogreška ili status i početak tijela odgovora. `null` nakon uspjeha.

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

Zadnjih 20 pokušaja, od najstarijih. Svaki ima `at`, `status` (HTTP status ili `null`),
`duration_ms` i `error`.

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

ISO 8601 UTC trenutak kada je isporuka izrađena.

**has\_more** `boolean` *required*

`true` kada postoje starije isporuke. Proslijedi zadnji `id` kao `before` za njihov dohvat.

## Odgovori s pogreškama

| Status | Opis |
| - | - |
| `400` | Neispravan zahtjev ili `before` nije isporuka ovog webhooka. Pogledaj poruku `error`. |
| `401` | Nema API ključa ili je API ključ neispravan. |
| `403` | Tvoj API ključ nema opseg `webhooks_manage`. |
| `404` | Webhook nije pronađen ili pripada drugom API ključu. |
| `500` | Interna pogreška poslužitelja. |

```bash cURL theme={null}
curl --request GET \
  --url https://anivahealth.com/api/v1/webhooks/4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d/deliveries \
  --header 'x-api-key: YOUR_API_KEY'
```

```json 200 theme={null}
{
  "data": [
    {
      "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": "succeeded",
      "attempt_count": 2,
      "next_attempt_at": null,
      "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"
    }
  ],
  "has_more": false
}
```


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