Webhook events
Events
Section titled “Events”| Event | Sent when |
|---|---|
request.planned |
Sunny has chosen the offices and work has started. |
request.booked |
An office confirmed the appointment. |
request.unable_to_schedule |
No office booked the patient. |
request.stopped |
A stop took effect. |
request.rescheduled |
The office moved the appointment. |
request.reschedule_failed |
The office could not move it. The original appointment stands. |
request.cancelled |
The office cancelled the appointment. |
request.cancel_failed |
The cancellation could not be completed. The appointment stands. |
request.document_delivery_failed |
The lab results could not be delivered to the office. The appointment stands. |
Common fields
Section titled “Common fields”Every event is a flat JSON object with these fields. Some events add more.
| Field | Notes |
|---|---|
event |
The event name. |
event_id |
evt_…. The same across retries and replays. Deduplicate on it. |
created_at |
When the event happened. |
sequence |
1, 2, 3… per request. |
request_id |
|
reference_id |
Your own id for the request, or null. |
status |
The request’s status after the event. |
sandbox |
true for a sandbox request. |
request.planned
Section titled “request.planned”Common fields only. status is planned.
request.booked
Section titled “request.booked”Adds booked_via (phone or online) and confirmation. stop_requested: true is added when the booking landed after you asked to stop; see Stop.
{ "event": "request.booked", "event_id": "evt_3a91c0", "created_at": "2026-11-20T18:41:03Z", "sequence": 2, "request_id": "req_8f2c1d", "reference_id": null, "status": "booked", "sandbox": false, "booked_via": "phone", "confirmation": { "time": "2026-12-02T09:40:00", "timezone": "America/Los_Angeles", "provider": { "first_name": "Sam", "last_name": "Example" }, "location_name": "Example Endocrine Associates", "address": "100 Sample Ave, San Francisco, CA 94110", "phone": "+14155550188", "notes": "Arrive 15 minutes early. Bring insurance card." }}request.unable_to_schedule
Section titled “request.unable_to_schedule”Adds reason, detail, next_steps and earliest_availability, as described in Following a request. status is unable_to_schedule.
When no matching office was found, reason is no_providers_found, nobody was contacted, and no request.planned comes first.
request.stopped
Section titled “request.stopped”Common fields only. status is stopped.
request.rescheduled
Section titled “request.rescheduled”Adds booked_via and the new confirmation, as in request.booked. status is booked.
request.reschedule_failed
Section titled “request.reschedule_failed”Adds reason, detail, next_steps and earliest_availability. status is still booked: the original appointment stands.
reason is no_availability (with earliest_availability when the office offered a date), unreachable or other. next_steps is empty.
request.cancelled
Section titled “request.cancelled”Adds detail: null, or what the office said about the cancellation, such as a fee. When the cancellation was requested within 48 hours of the visit, it also says the office may charge a late-cancellation fee. status is cancelled.
request.cancel_failed
Section titled “request.cancel_failed”Adds reason, detail, next_steps and earliest_availability. status is still booked: the appointment stands. reason is unreachable or other.
request.document_delivery_failed
Section titled “request.document_delivery_failed”Adds document_delivery, with status: "failed". The request’s status is still booked: the appointment is unaffected. See Lab results.
{ "event": "request.document_delivery_failed", "event_id": "evt_7c04be", "created_at": "2026-11-20T19:35:10Z", "sequence": 3, "request_id": "req_8f2c1d", "reference_id": null, "status": "booked", "sandbox": false, "document_delivery": { "status": "failed", "method": "fax", "updated_at": "2026-11-20T19:35:10Z", "detail": "The lab results could not be faxed to the office." }}A delivery that succeeds sends no event.