Webhooky
Vypsat doručení
Vypsat pokusy o doručení webhooku
GET
/
api
/
v1
/
webhooks
/
{id}
/
deliveries
curl --request GET \
--url https://anivahealth.com/api/v1/webhooks/4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d/deliveries \
--header 'x-api-key: YOUR_API_KEY'
{
"data": [
{
"id": "7c9e1a3b-5d7f-4b2d-9e4a-6c8e0a2b4d6f",
"event": {
"id": "0b8e6f3a-2c4d-4e7f-9a1b-3c5d7e9f1a2b",
"type": "appointment.confirmed",
"timestamp": "2026-10-15T09:12:44.512Z",
"data": {
"object": "appointment",
"id": "c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a",
"url": "https://anivahealth.com/api/v1/appointments/c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a",
"status": "confirmed",
"previous_status": "pending",
"status_revision": 2
}
},
"status": "succeeded",
"attempt_count": 2,
"next_attempt_at": null,
"last_attempt_at": "2026-10-15T09:13:06.000Z",
"last_response_status": 204,
"last_error": null,
"attempts": [
{
"at": "2026-10-15T09:13:01.000Z",
"status": 503,
"duration_ms": 412,
"error": "HTTP 503: Service Unavailable"
},
{
"at": "2026-10-15T09:13:06.000Z",
"status": 204,
"duration_ms": 88,
"error": null
}
],
"created_at": "2026-10-15T09:13:00.000Z"
}
],
"has_more": false
}
Vypiš doručení jednoho webhooku od nejnovějších, včetně každého pokusu a HTTP stavu, kterým tvůj
endpoint odpověděl.
Vyžaduje scope
webhooks_manage.Požadavek
Parametry cesty
Parametry dotazu
Odpověď
Při úspěchu vrátí API200 OK.
Doručení, od nejnovějších.
Zobrazit doručení
Zobrazit doručení
Událost přesně tak, jak byla odeslána v těle požadavku. Viz Payload.
pending, succeeded, failed (všechny pokusy selhaly nebo endpoint odpověděl 410 Gone) nebo
cancelled (webhook byl během čekání vypnut).HTTP status posledního pokusu.
null, pokud nepřišla žádná odpověď, například při vypršení časového limitu.Posledních 20 pokusů, od nejstaršího. Každý obsahuje
at, status (HTTP status nebo null),
duration_ms a error.true, pokud existují starší doručení. Pro jejich získání předej poslední id jako before.Chybové odpovědi
| Status | Popis |
|---|---|
400 | Neplatný požadavek, nebo before není doručením tohoto webhooku. Viz zpráva error. |
401 | Neplatný API klíč. |
403 | Chybějící API klíč, nebo API klíč bez oprávnění webhooks_manage. |
404 | Webhook nebyl nalezen, nebo patří jinému API klíči. |
500 | Interní chyba serveru. |
curl --request GET \
--url https://anivahealth.com/api/v1/webhooks/4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d/deliveries \
--header 'x-api-key: YOUR_API_KEY'
{
"data": [
{
"id": "7c9e1a3b-5d7f-4b2d-9e4a-6c8e0a2b4d6f",
"event": {
"id": "0b8e6f3a-2c4d-4e7f-9a1b-3c5d7e9f1a2b",
"type": "appointment.confirmed",
"timestamp": "2026-10-15T09:12:44.512Z",
"data": {
"object": "appointment",
"id": "c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a",
"url": "https://anivahealth.com/api/v1/appointments/c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a",
"status": "confirmed",
"previous_status": "pending",
"status_revision": 2
}
},
"status": "succeeded",
"attempt_count": 2,
"next_attempt_at": null,
"last_attempt_at": "2026-10-15T09:13:06.000Z",
"last_response_status": 204,
"last_error": null,
"attempts": [
{
"at": "2026-10-15T09:13:01.000Z",
"status": 503,
"duration_ms": 412,
"error": "HTTP 503: Service Unavailable"
},
{
"at": "2026-10-15T09:13:06.000Z",
"status": 204,
"duration_ms": 88,
"error": null
}
],
"created_at": "2026-10-15T09:13:00.000Z"
}
],
"has_more": false
}
⌘I
curl --request GET \
--url https://anivahealth.com/api/v1/webhooks/4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d/deliveries \
--header 'x-api-key: YOUR_API_KEY'
{
"data": [
{
"id": "7c9e1a3b-5d7f-4b2d-9e4a-6c8e0a2b4d6f",
"event": {
"id": "0b8e6f3a-2c4d-4e7f-9a1b-3c5d7e9f1a2b",
"type": "appointment.confirmed",
"timestamp": "2026-10-15T09:12:44.512Z",
"data": {
"object": "appointment",
"id": "c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a",
"url": "https://anivahealth.com/api/v1/appointments/c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a",
"status": "confirmed",
"previous_status": "pending",
"status_revision": 2
}
},
"status": "succeeded",
"attempt_count": 2,
"next_attempt_at": null,
"last_attempt_at": "2026-10-15T09:13:06.000Z",
"last_response_status": 204,
"last_error": null,
"attempts": [
{
"at": "2026-10-15T09:13:01.000Z",
"status": 503,
"duration_ms": 412,
"error": "HTTP 503: Service Unavailable"
},
{
"at": "2026-10-15T09:13:06.000Z",
"status": 204,
"duration_ms": 88,
"error": null
}
],
"created_at": "2026-10-15T09:13:00.000Z"
}
],
"has_more": false
}