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

# Elimina un webhook

> Elimina un webhook i els seus lliuraments

Suprimeix un webhook, els seus secrets i els seus lliuraments. Aquesta acció no es pot desfer. Per pausar un
webhook, envia `status: "disabled"` amb [Actualitza el webhook](https://docs.anivahealth.com/ca/api/webhooks/update-webhook.md).

> [!NOTE]
>
> Requereix l'àmbit `webhooks_manage`.

## Sol·licitud

### Paràmetres de ruta

**id** `string` *required*

Identificador del webhook (UUID).

## Resposta

Si té èxit, l'API retorna `204 No Content` amb el cos buit.

## Respostes d'error

| Estat | Descripció |
| - | - |
| `400` | Sol·licitud no vàlida. Consulta el missatge `error`. |
| `401` | Clau d'API no vàlida. |
| `403` | Sense clau d'API, o una clau d'API sense l'àmbit `webhooks_manage`. |
| `404` | No s'ha trobat el webhook, o pertany a una altra clau d'API. |
| `500` | Error intern del servidor. |

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