# Send a test notification

`POST https://ulawk.com/api/v1/webhooklar/{webhook_id}/test/`

Sends one test notification with a made-up DENEME company (`"test": true` in the body) and returns the result at once; not retried. If your endpoint does not answer 2xx: 502 `webhook_teslim_hatasi`.

## Authentication

Two headers on every request: `X-API-Key` and `X-API-Secret`.

## Path parameters

- `webhook_id` (integer, required) — Webhook id.

## Response

### 200 — Delivered.

- `teslim` (Teslim, zorunlu)
- `teslim.teslim_id` (string, zorunlu) — Same across retries (de-duplication).
- `teslim.olay` (string, zorunlu) Değerler: sirket.degisiklik, test.
- `teslim.test` (boolean, zorunlu)
- `teslim.kategoriler[]` (string[], zorunlu)
- `teslim.durum` (string, zorunlu) Değerler: bekliyor, basarili, hata, vazgecildi.
- `teslim.deneme_sayisi` (integer, zorunlu)
- `teslim.http_kodu` (integer, null, zorunlu)
- `teslim.hata` (string, null, zorunlu)
- `teslim.olusturma` (string (date-time), null, zorunlu)
- `teslim.son_deneme` (string (date-time), null, zorunlu)

```json
{
  "teslim": {
    "teslim_id": "msg_3f9c1a0b7d2e4c5f6a7b8c9d",
    "olay": "test",
    "test": true,
    "kategoriler": [
      "durum",
      "yetkililer"
    ],
    "durum": "basarili",
    "deneme_sayisi": 1,
    "http_kodu": 200,
    "hata": null,
    "olusturma": "2026-10-16T00:00:00+00:00",
    "son_deneme": "2026-10-16T00:00:00+00:00"
  }
}
```

### 403 — `anahtar_gerekli`.


```json
{
  "hata": "anahtar_gerekli",
  "detay": "Bu işlem için X-API-Key (ve X-API-Secret) başlığı gerekli; panelden de yapabilirsiniz.",
  "hata_ayrinti": {
    "kod": "anahtar_gerekli",
    "mesaj": "Bu işlem için X-API-Key (ve X-API-Secret) başlığı gerekli; panelden de yapabilirsiniz.",
    "taraf": "istemci",
    "kaynak": null,
    "tekrar_denenebilir": false,
    "tekrar_sn": null
  }
}
```

### 404 — Not found or no access (`bulunamadi`).


```json
{
  "hata": "bulunamadi",
  "detay": "Şirket bulunamadı ya da erişim yetkiniz yok.",
  "hata_ayrinti": {
    "kod": "bulunamadi",
    "mesaj": "Şirket bulunamadı ya da erişim yetkiniz yok.",
    "taraf": "istemci",
    "kaynak": null,
    "tekrar_denenebilir": false,
    "tekrar_sn": null
  }
}
```

### 502 — Your endpoint did not answer 2xx; `teslim` has details.

Retry-After: `60`

```json
{
  "hata": "webhook_teslim_hatasi",
  "detay": "Test bildirimi teslim edilemedi: HTTP 500",
  "hata_ayrinti": {
    "kod": "webhook_teslim_hatasi",
    "mesaj": "Test bildirimi teslim edilemedi: HTTP 500",
    "taraf": "istemci",
    "kaynak": null,
    "tekrar_denenebilir": true,
    "tekrar_sn": 60
  },
  "teslim": {
    "teslim_id": "msg_3f9c1a0b7d2e4c5f6a7b8c9d",
    "olay": "test",
    "test": true,
    "kategoriler": [
      "durum",
      "yetkililer"
    ],
    "durum": "vazgecildi",
    "deneme_sayisi": 1,
    "http_kodu": 500,
    "hata": "HTTP 500",
    "olusturma": "2026-10-16T00:00:00+00:00",
    "son_deneme": "2026-10-16T00:00:00+00:00"
  }
}
```

### 401 — Missing or invalid key (`yetkisiz`).


```json
{
  "hata": "yetkisiz",
  "detay": "Geçerli X-API-Key başlığı gerekli (panel › API).",
  "hata_ayrinti": {
    "kod": "yetkisiz",
    "mesaj": "Geçerli X-API-Key başlığı gerekli (panel › API).",
    "taraf": "istemci",
    "kaynak": null,
    "tekrar_denenebilir": false,
    "tekrar_sn": null
  }
}
```

### 429 — Hourly rate limit exceeded (`hiz_siniri`); the Retry-After header gives the seconds until reset.

Retry-After: `3172`

```json
{
  "hata": "hiz_siniri",
  "detay": "Saatlik istek sınırı aşıldı (600). Bir sonraki saatte tekrar deneyin.",
  "hata_ayrinti": {
    "kod": "hiz_siniri",
    "mesaj": "Saatlik istek sınırı aşıldı (600). Bir sonraki saatte tekrar deneyin.",
    "taraf": "istemci",
    "kaynak": null,
    "tekrar_denenebilir": true,
    "tekrar_sn": 3172
  }
}
```

### 500 — Unexpected error (`ic_hata`, taraf ulawk); retry shortly.

Retry-After: `60`

```json
{
  "hata": "ic_hata",
  "detay": "Beklenmeyen bir hata oluştu; kısa süre sonra yeniden deneyin.",
  "hata_ayrinti": {
    "kod": "ic_hata",
    "mesaj": "Beklenmeyen bir hata oluştu; kısa süre sonra yeniden deneyin.",
    "taraf": "ulawk",
    "kaynak": null,
    "tekrar_denenebilir": true,
    "tekrar_sn": 60
  }
}
```

## Request

```bash
curl -X POST "https://ulawk.com/api/v1/webhooklar/1/test/" \
  -H "X-API-Key: ulk_DENEME_ANAHTARINIZ" \
  -H "X-API-Secret: ulsk_DENEME_GIZLI_ANAHTARINIZ"
```
