Tīmekļa aizķeres
Nosūtīt testa notikumu
Nosūtīt ping notikumu tīmekļa aizķerei
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."
}
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ā.
Nepieciešams
webhooks_manage tvērums.Pieprasījums
Ceļa parametri
Atbilde
Ja pieprasījums izdodas, API atgriež202 Accepted.
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. |
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."
}