Webhooky
Vypísať webhooky
Vypísať webhooky patriace tvojmu API kľúču
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"
}
]
Vypíše webhooky, ktoré vlastní tvoj API kľúč, od najstarších. Odpoveď nikdy neobsahuje tajný
podpisový kľúč.
Vyžaduje scope
webhooks_manage.Požiadavka
Tento endpoint neprijíma žiadne parametre.Odpoveď
Pri úspechu API vráti200 OK s poľom objektov webhooku.
Typy udalostí, ktoré tento webhook prijíma.
* znamená každý typ.Prečo bol webhook vypnutý. Pozri Upozornenia na zlyhania.
null,
kým je zapnutý.Čas v ISO 8601 UTC, kedy sa začala aktuálna séria zlyhaní.
null, keď posledné doručenie uspelo.Čas v ISO 8601 UTC, kedy predchádzajúci tajný kľúč prestane podpisovať.
null, keď neprebieha žiadna rotácia.Chybové odpovede
| Stav | Popis |
|---|---|
401 | Chýbajúci alebo neplatný API kľúč. |
403 | Tvoj API kľúč nemá rozsah webhooks_manage. |
500 | Interná chyba servera. |
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"
}
]