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

# Slett webhook

> Slett en webhook og leveringene dens

Slett en webhook, hemmelighetene og leveringene dens. Dette kan ikke angres. For å sette en
webhook på pause, send `status: "disabled"` med [Oppdater webhook](https://docs.anivahealth.com/no/api/webhooks/update-webhook.md).

> [!NOTE]
>
> Krever scopet `webhooks_manage`.

## Forespørsel

### Stiparametere

**id** `string` *required*

Webhook-identifikator (UUID).

## Respons

Når forespørselen lykkes, returnerer API-et `204 No Content` med en tom body.

## Feilresponser

| Status | Beskrivelse |
| - | - |
| `400` | Ugyldig forespørsel. Se meldingen i `error`. |
| `401` | Ugyldig API-nøkkel. |
| `403` | Ingen API-nøkkel, eller en API-nøkkel uten scopet `webhooks_manage`. |
| `404` | Webhooken ble ikke funnet, eller den tilhører en annen API-nøkkel. |
| `500` | Intern serverfeil. |

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