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

# Webhook'u sil

> Bir webhook'u ve teslimatlarını sil

Bir webhook'u, gizli anahtarlarını ve teslimatlarını sil. Bu işlem geri alınamaz. Bir webhook'u
duraklatmak için [Webhook'u güncelle](https://docs.anivahealth.com/tr/api/webhooks/update-webhook.md) ile `status: "disabled"` gönder.

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

## İstek

### Yol parametreleri

**id** `string` *required*

Webhook kimliği (UUID).

## Yanıt

Başarılı olduğunda API, boş bir gövdeyle `204 No Content` döndürür.

## Hata yanıtları

| Durum | Açıklama |
| - | - |
| `400` | Geçersiz istek. `error` mesajına bak. |
| `401` | Geçersiz API anahtarı. |
| `403` | API anahtarı yok veya API anahtarında `webhooks_manage` kapsamı bulunmuyor. |
| `404` | Webhook bulunamadı veya başka bir API anahtarına ait. |
| `500` | Dahili sunucu hatası. |

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

```json 404 theme={null}
{
  "error": "Webhook not found"
}
```


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