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

# Usuń webhook

> Usuń webhook i jego dostarczenia

Usuń webhook, jego sekrety i dostarczenia. Tej operacji nie można cofnąć. Aby wstrzymać
webhook, wyślij `status: "disabled"` przez [Aktualizuj webhook](https://docs.anivahealth.com/pl/api/webhooks/update-webhook.md).

> [!NOTE]
>
> Wymaga zakresu `webhooks_manage`.

## Żądanie

### Parametry ścieżki

**id** `string` *required*

Identyfikator webhooka (UUID).

## Odpowiedź

W przypadku powodzenia API zwraca `204 No Content` z pustą treścią.

## Odpowiedzi z błędami

| Status | Opis |
| - | - |
| `400` | Nieprawidłowe żądanie. Zobacz komunikat `error`. |
| `401` | Nieprawidłowy klucz API. |
| `403` | Brak klucza API lub klucz API bez zakresu `webhooks_manage`. |
| `404` | Nie znaleziono webhooka lub należy on do innego klucza API. |
| `500` | Wewnętrzny błąd serwera. |

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