> ## 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 webhook-a

Prikaži isporuke jednog webhooka, prvo najnovije, sa svakim pokušajem i HTTP statusom kojim je tvoj
endpoint odgovorio.

> [!NOTE]
>
> Zahteva opseg `webhooks_manage`.

## Zahtev

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

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

**before** `string`

ID isporuke ovog webhooka. Prosledi poslednji `id` sa stranice da dobiješ sledeću stranicu.

## Odgovor

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

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

Isporuke, prvo najnovije.

**isporuka**

**id** `string` *required*

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

**event** `object` *required*

Događaj tačno onako kako je poslat u telu zahteva. Pogledaj [Payload](https://docs.anivahealth.com/sr/concepts/webhooks.md#payload).

**status** `string` *required*

`pending`, `succeeded`, `failed` (svi pokušaji nisu uspeli ili je endpoint odgovorio sa `410 Gone`) ili
`cancelled` (webhook je onemogućen dok je bila na čekanju).

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

Broj dosadašnjih pokušaja. Ponovno slanje počinje ispočetka od `0`.

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

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

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

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

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

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

**last\_error** `string`

Mrežna greška ili status i početak tela odgovora. `null` nakon uspeha.

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

Poslednjih 20 pokušaja, prvo najstariji. Svaki ima `at`, `status` (HTTP status ili `null`),
`duration_ms` i `error`.

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

ISO 8601 UTC trenutak kada je isporuka kreirana.

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

`true` kada postoje starije isporuke. Prosledi poslednji `id` kao `before` da ih dobiješ.

## Odgovori sa greškom

| Status | Opis |
| - | - |
| `400` | Neispravan zahtev, ili `before` nije isporuka ovog webhooka. Pogledaj poruku `error`. |
| `401` | Nema API ključa ili je API ključ nevažeći. |
| `403` | Tvoj API ključ nema opseg `webhooks_manage`. |
| `404` | Webhook nije pronađen ili pripada drugom API ključu. |
| `500` | Interna greška servera. |

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