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

# Nosūtīt testa notikumu

> Nosūtīt ping notikumu tīmekļa aizķerei

Nosūti parakstītu `ping` notikumu tīmekļa aizķerei neatkarīgi no tās `enabled_events`. Izsaukums atgriež atbildi uzreiz.
Seko rezultātam [Piegāžu sarakstā](https://docs.anivahealth.com/lv/api/webhooks/list-deliveries.md).

> [!NOTE]
>
> Nepieciešams `webhooks_manage` tvērums.

## Pieprasījums

### Ceļa parametri

**id** `string` *required*

Tīmekļa aizķeres identifikators (UUID).

## Atbilde

Ja pieprasījums izdodas, API atgriež `202 Accepted`.

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

Identifikators (UUID) piegādei, kas nosūta ping.

## Kļūdu atbildes

| Statuss | Apraksts |
| - | - |
| `400` | Nederīgs pieprasījums. Skati `error` ziņojumu. |
| `401` | Nederīga API atslēga. |
| `403` | Nav API atslēgas vai API atslēgai nav `webhooks_manage` tvēruma. |
| `404` | Tīmekļa aizķere nav atrasta vai pieder citai API atslēgai. |
| `409` | Tīmekļa aizķere ir atspējota. Vispirms to iespējo. |
| `500` | Iekšēja servera kļūda. |

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