Vebhukovi
Pošalji probni događaj
Pošalji ping-događaj na webhook
POST
/
api
/
v1
/
webhooks
/
{id}
/
ping
curl --request POST \
--url https://anivahealth.com/api/v1/webhooks/4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d/ping \
--header 'x-api-key: YOUR_API_KEY'
{
"delivery_id": "7c9e1a3b-5d7f-4b2d-9e4a-6c8e0a2b4d6f"
}
{
"error": "The endpoint is disabled. Enable it first."
}
Pošalji potpisani
ping događaj na webhook, bez obzira na njegov enabled_events. Poziv se vraća odmah.
Rezultat prati pomoću Prikaži isporuke.
Zahteva opseg
webhooks_manage.Zahtev
Parametri putanje
Odgovor
U slučaju uspeha, API vraća202 Accepted.
Odgovori sa greškom
| Status | Opis |
|---|---|
400 | Neispravan zahtev. Pogledaj poruku error. |
401 | Nema API ključa ili je API ključ nevažeći. |
403 | Tvoj API ključ nema opseg webhooks_manage. |
404 | Webhook nije pronađen ili pripada drugom API ključu. |
409 | Webhook je onemogućen. Prvo ga omogući. |
500 | Interna greška servera. |
curl --request POST \
--url https://anivahealth.com/api/v1/webhooks/4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d/ping \
--header 'x-api-key: YOUR_API_KEY'
{
"delivery_id": "7c9e1a3b-5d7f-4b2d-9e4a-6c8e0a2b4d6f"
}
{
"error": "The endpoint is disabled. Enable it first."
}
⌘I
curl --request POST \
--url https://anivahealth.com/api/v1/webhooks/4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d/ping \
--header 'x-api-key: YOUR_API_KEY'
{
"delivery_id": "7c9e1a3b-5d7f-4b2d-9e4a-6c8e0a2b4d6f"
}
{
"error": "The endpoint is disabled. Enable it first."
}