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

# Enviar evento de prueba

> Enviar un evento ping a un webhook

Envía un evento `ping` firmado a un webhook, sea cual sea su `enabled_events`. La llamada responde al instante.
Sigue el resultado con [Listar entregas](https://docs.anivahealth.com/es/api/webhooks/list-deliveries.md).

> [!NOTE]
>
> Requiere el scope `webhooks_manage`.

## Solicitud

### Parámetros de ruta

**id** `string` *required*

Identificador del webhook (UUID).

## Respuesta

Si la petición tiene éxito, la API devuelve `202 Accepted`.

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

Identificador (UUID) de la entrega que envía el ping.

## Respuestas de error

| Estado | Descripción |
| - | - |
| `400` | Petición no válida. Consulta el mensaje de `error`. |
| `401` | Clave de API no válida. |
| `403` | Sin clave de API, o una clave de API sin el scope `webhooks_manage`. |
| `404` | Webhook no encontrado, o pertenece a otra clave de API. |
| `409` | El webhook está desactivado. Actívalo primero. |
| `500` | Error interno del servidor. |

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