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

# Ta bort webhook

> Ta bort en webhook och dess leveranser

Ta bort en webhook, dess hemligheter och dess leveranser. Detta kan inte ångras. För att pausa en
webhook, skicka `status: "disabled"` med [Uppdatera webhook](https://docs.anivahealth.com/sv/api/webhooks/update-webhook.md).

> [!NOTE]
>
> Kräver scopet `webhooks_manage`.

## Förfrågan

### Sökvägsparametrar

**id** `string` *required*

Webhook-identifierare (UUID).

## Svar

Vid lyckat anrop returnerar API:et `204 No Content` med en tom body.

## Felsvar

| Status | Beskrivning |
| - | - |
| `400` | Ogiltig begäran. Se meddelandet i `error`. |
| `401` | Ogiltig API-nyckel. |
| `403` | Ingen API-nyckel, eller en API-nyckel utan scopet `webhooks_manage`. |
| `404` | Webhooken hittades inte, eller så tillhör den en annan API-nyckel. |
| `500` | Internt serverfel. |

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