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

# Видалити вебхук

> Видалити вебхук і його доставки

Видали вебхук, його секрети та доставки. Цю дію неможливо скасувати. Щоб призупинити
вебхук, надішли `status: "disabled"` через [Оновити вебхук](https://docs.anivahealth.com/uk/api/webhooks/update-webhook.md).

> [!NOTE]
>
> Потребує дозволу `webhooks_manage`.

## Запит

### Параметри шляху

**id** `string` *required*

Ідентифікатор вебхука (UUID).

## Відповідь

У разі успіху API повертає `204 No Content` із порожнім тілом.

## Відповіді з помилками

| Статус | Опис |
| - | - |
| `400` | Некоректний запит. Див. повідомлення `error`. |
| `401` | Недійсний API-ключ. |
| `403` | Немає API-ключа або API-ключ без дозволу `webhooks_manage`. |
| `404` | Вебхук не знайдено, або він належить іншому API-ключу. |
| `500` | Внутрішня помилка сервера. |

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