Webhook'lar
Test olayı gönder
Bir webhook’a ping olayı gönder
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."
}
enabled_events değeri ne olursa olsun bir webhook’a imzalı bir ping olayı gönder. Çağrı hemen döner.
Sonucu Teslimatları listele ile takip et.
webhooks_manage kapsamını gerektirir.İstek
Yol parametreleri
Yanıt
Başarılı olduğunda API202 Accepted döndürür.
Hata yanıtları
| Durum | Açıklama |
|---|---|
400 | Geçersiz istek. error mesajına bak. |
401 | Geçersiz API anahtarı. |
403 | API anahtarı yok veya API anahtarında webhooks_manage kapsamı yok. |
404 | Webhook bulunamadı veya başka bir API anahtarına ait. |
409 | Webhook devre dışı. Önce etkinleştir. |
500 | İç sunucu hatası. |
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."
}