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

# Teslimatları listele

> Bir webhook'un teslimat denemelerini listele

Bir webhook'un teslimatlarını en yeniden başlayarak, her deneme ve uç noktanın yanıt verdiği HTTP durumuyla
birlikte listele.

> [!NOTE]
>
> `webhooks_manage` kapsamını gerektirir.

## İstek

### Yol parametreleri

**id** `string` *required*

Webhook kimliği (UUID).

### Sorgu parametreleri

**status** `string`

Yalnızca bu durumdaki teslimatlar: `pending`, `succeeded`, `failed` veya `cancelled`.

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

Döndürülecek maksimum teslimat sayısı, 1 ila 100.

**before** `string`

Bu webhook'a ait bir teslimat kimliği. Sonraki sayfayı almak için bir sayfanın son `id` değerini gönder.

## Yanıt

Başarılı olduğunda API `200 OK` döndürür.

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

En yeniden başlayarak teslimatlar.

**teslimat**

**id** `string` *required*

Teslimat kimliği (UUID). Bir teslimat, bir webhook'a bir olay gönderir.

**event** `object` *required*

İstek gövdesinde gönderildiği haliyle olay. [Veri yükü](https://docs.anivahealth.com/tr/concepts/webhooks.md#veri-yuekue) bölümüne bak.

**status** `string` *required*

`pending`, `succeeded`, `failed` (tüm denemeler başarısız oldu veya uç nokta `410 Gone` yanıtını verdi) veya
`cancelled` (beklemedeyken webhook devre dışı bırakıldı).

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

Şimdiye kadar yapılan denemeler. Yeniden gönderim tekrar `0`'dan başlar.

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

Sonraki denemenin ISO 8601 UTC zamanı. Planlanan deneme yoksa `null`.

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

Son denemenin ISO 8601 UTC zamanı. `null` olabilir.

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

Son denemenin HTTP durumu. Yanıt gelmediğinde, örneğin zaman aşımında `null`.

**last\_error** `string`

Bir ağ hatası ya da durum ve yanıt gövdesinin başlangıcı. Başarılı olduktan sonra `null`.

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

En eskiden başlayarak son 20 deneme. Her birinde `at`, `status` (HTTP durumu veya `null`),
`duration_ms` ve `error` bulunur.

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

Teslimatın oluşturulduğu ISO 8601 UTC zamanı.

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

Daha eski teslimatlar varsa `true`. Bunları almak için son `id` değerini `before` olarak gönder.

## Hata yanıtları

| Durum | Açıklama |
| - | - |
| `400` | Geçersiz istek veya `before` bu webhook'a ait bir teslimat değil. `error` mesajına bak. |
| `401` | Geçersiz API anahtarı. |
| `403` | API anahtarı yok veya API anahtarında `webhooks_manage` kapsamı yok. |
| `404` | Webhook bulunamadı veya başka bir API anahtarına ait. |
| `500` | İç sunucu hatası. |

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