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

# Invia evento di test

> Invia un evento ping a un webhook

Invia un evento `ping` firmato a un webhook, indipendentemente dai suoi `enabled_events`. La chiamata risponde subito.
Segui il risultato con [Elenca consegne](https://docs.anivahealth.com/it/api/webhooks/list-deliveries.md).

> [!NOTE]
>
> Richiede lo scope `webhooks_manage`.

## Richiesta

### Parametri di percorso

**id** `string` *required*

Identificatore del webhook (UUID).

## Risposta

In caso di successo, l'API restituisce `202 Accepted`.

**delivery\_id** `string` *required*

Identificatore (UUID) della consegna che invia il ping.

## Risposte di errore

| Stato | Descrizione |
| - | - |
| `400` | Richiesta non valida. Vedi il messaggio `error`. |
| `401` | Chiave API non valida. |
| `403` | Nessuna chiave API, oppure una chiave API senza lo scope `webhooks_manage`. |
| `404` | Webhook non trovato, oppure appartiene a un'altra chiave API. |
| `409` | Il webhook è disabilitato. Abilitalo prima. |
| `500` | Errore interno del server. |

```bash cURL theme={null}
curl --request POST \
  --url https://anivahealth.com/api/v1/webhooks/4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d/ping \
  --header 'x-api-key: YOUR_API_KEY'
```

```json 202 theme={null}
{
  "delivery_id": "7c9e1a3b-5d7f-4b2d-9e4a-6c8e0a2b4d6f"
}
```

```json 409 theme={null}
{
  "error": "The endpoint is disabled. Enable it first."
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.