Webhook'lar
Webhook'ları listele
API anahtarının sahip olduğu webhook’ları listele
GET
/
api
/
v1
/
webhooks
curl --request GET \
--url https://anivahealth.com/api/v1/webhooks \
--header 'x-api-key: YOUR_API_KEY'
[
{
"id": "4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d",
"url": "https://partner.example.com/webhooks/aniva",
"description": "Production",
"enabled_events": [
"appointment.confirmed",
"appointment.results.completed",
"home_kit_order.results.completed"
],
"alert_emails": ["ops@partner.example.com"],
"status": "enabled",
"disabled_at": null,
"disabled_reason": null,
"failing_since": null,
"previous_secret_expires_at": null,
"created_at": "2026-10-15T08:00:00.000Z",
"updated_at": "2026-10-15T08:00:00.000Z"
}
]
API anahtarının sahip olduğu webhook’ları en eskiden başlayarak listele. Yanıt hiçbir zaman imzalama
gizli anahtarı içermez.
webhooks_manage kapsamını gerektirir.İstek
Bu uç nokta parametre almaz.Yanıt
Başarılı olduğunda API, webhook nesnelerinden oluşan bir diziyle200 OK döndürür.
Bu webhook’un aldığı olay türleri.
* tüm türler anlamına gelir.Webhook’un neden devre dışı bırakıldığı. Bkz. Hata bildirimleri. Etkin durumdayken
null.Mevcut başarısızlık serisinin başladığı ISO 8601 UTC zamanı. Son teslimat başarılı olduğunda
null.Önceki gizli anahtarın imzalamayı durduracağı ISO 8601 UTC zamanı. Anahtar döndürme devam etmiyorken
null.Hata yanıtları
| Durum | Açıklama |
|---|---|
401 | Geçersiz API anahtarı. |
403 | API anahtarı yok veya API anahtarında webhooks_manage kapsamı yok. |
500 | İç sunucu hatası. |
curl --request GET \
--url https://anivahealth.com/api/v1/webhooks \
--header 'x-api-key: YOUR_API_KEY'
[
{
"id": "4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d",
"url": "https://partner.example.com/webhooks/aniva",
"description": "Production",
"enabled_events": [
"appointment.confirmed",
"appointment.results.completed",
"home_kit_order.results.completed"
],
"alert_emails": ["ops@partner.example.com"],
"status": "enabled",
"disabled_at": null,
"disabled_reason": null,
"failing_since": null,
"previous_secret_expires_at": null,
"created_at": "2026-10-15T08:00:00.000Z",
"updated_at": "2026-10-15T08:00:00.000Z"
}
]
⌘I
curl --request GET \
--url https://anivahealth.com/api/v1/webhooks \
--header 'x-api-key: YOUR_API_KEY'
[
{
"id": "4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d",
"url": "https://partner.example.com/webhooks/aniva",
"description": "Production",
"enabled_events": [
"appointment.confirmed",
"appointment.results.completed",
"home_kit_order.results.completed"
],
"alert_emails": ["ops@partner.example.com"],
"status": "enabled",
"disabled_at": null,
"disabled_reason": null,
"failing_since": null,
"previous_secret_expires_at": null,
"created_at": "2026-10-15T08:00:00.000Z",
"updated_at": "2026-10-15T08:00:00.000Z"
}
]