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

# Izbriši webhook

> Izbriši webhook i njegove isporuke

Izbriši webhook, njegove tajne i njegove isporuke. Ova se radnja ne može poništiti. Za pauziranje
webhooka pošalji `status: "disabled"` putem [Ažuriraj webhook](https://docs.anivahealth.com/hr/api/webhooks/update-webhook.md).

> [!NOTE]
>
> Zahtijeva scope `webhooks_manage`.

## Zahtjev

### Parametri putanje

**id** `string` *required*

Identifikator webhooka (UUID).

## Odgovor

U slučaju uspjeha API vraća `204 No Content` s praznim tijelom.

## Odgovori s pogreškama

| Status | Opis |
| - | - |
| `400` | Neispravan zahtjev. Pogledaj poruku `error`. |
| `401` | Nema API ključa ili je API ključ neispravan. |
| `403` | Tvoj API ključ nema opseg `webhooks_manage`. |
| `404` | Webhook nije pronađen ili pripada drugom API ključu. |
| `500` | Interna pogreška poslužitelja. |

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