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

# Odeslat testovací událost

> Odeslat událost ping na webhook

Pošli podepsanou událost `ping` na webhook bez ohledu na jeho `enabled_events`. Volání se vrátí okamžitě.
Výsledek sleduj pomocí [Výpisu doručení](https://docs.anivahealth.com/cs/api/webhooks/list-deliveries.md).

> [!NOTE]
>
> Vyžaduje scope `webhooks_manage`.

## Požadavek

### Parametry cesty

**id** `string` *required*

Identifikátor webhooku (UUID).

## Odpověď

Při úspěchu vrátí API `202 Accepted`.

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

Identifikátor (UUID) doručení, které odešle ping.

## Chybové odpovědi

| Status | Popis |
| - | - |
| `400` | Neplatný požadavek. Viz zpráva `error`. |
| `401` | Neplatný API klíč. |
| `403` | Chybějící API klíč, nebo API klíč bez oprávnění `webhooks_manage`. |
| `404` | Webhook nebyl nalezen, nebo patří jinému API klíči. |
| `409` | Webhook je vypnutý. Nejdřív ho zapni. |
| `500` | Interní chyba serveru. |

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