Skip to content

Following a request

There are two ways to follow a request, and you should use both:

  • Webhooks tell you when something changed.
  • GET /v1/scheduling/requests/{id} is always the authority. Use it to recover after an outage or a gap in sequence.
received → planned → in_progress → booked → cancelled
↘ unable_to_schedule
↘ stopped
Status Meaning
received Sunny has the request and is choosing offices.
planned The offices are chosen and work has started.
in_progress Sunny is contacting offices.
booked An office confirmed the appointment. confirmation is set.
unable_to_schedule No office booked the patient. failure says why and what the member can do.
stopped You stopped the request before it booked.
cancelled A booked visit was cancelled with the office.

Offices are called in their opening hours, so a request sent in the evening or at a weekend waits for the next working morning.

{
"id": "req_8f2c1d",
"status": "booked",
"reference_id": null,
"sandbox": false,
"created_at": "2026-11-19T17:02:12Z",
"updated_at": "2026-11-20T18:41:03Z",
"request": { "…": "what you sent" },
"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."
},
"pending_action": null,
"stop_requested_at": null,
"document_delivery": { "status": "delivered", "method": "fax", "updated_at": "2026-11-20T18:52:40Z" },
"failure": null
}
  • request echoes what you sent, with two changes: a file’s data is never returned, and insurance.member_id shows only its last four characters.
  • confirmation.time is local to the office, with no offset; timezone is its IANA zone.
  • confirmation.provider.first_name is null when the office gave only a surname. No NPI is returned.
  • pending_action is set while a reschedule or cancel is under way, or after one failed.
  • document_delivery is described in Lab results.

status becomes unable_to_schedule and failure is set:

{
"reason": "action_required",
"detail": "Two endocrinology offices near 94110 can see the patient, and each needs something first. Example Endocrine Associates is the quicker route if the patient has a primary care doctor who can send a referral. Three other offices had no appointments before 18 December.",
"next_steps": [
{ "office_name": "Example Endocrine Associates", "phone": "+14155550188", "instructions": "Needs a referral from a primary care doctor, faxed to +14155550189. Then call to book; they have openings the week of 7 December." },
{ "office_name": "Sample Diabetes Center", "phone": "+14155550142", "instructions": "Books new patients only with the patient on the line. Call weekdays 9 to 4 and choose option 2." }
],
"earliest_availability": null
}
reason Meaning Extra
no_availability Offices had nothing inside the dates. earliest_availability: the earliest date any office offered. It is reported, not booked.
action_required One or more offices will book once something is done. next_steps: one entry per office, best option first, at most 5.
not_accepted Offices do not take the plan or new patients.
unreachable No office could be reached after repeated tries.
no_providers_found No matching office was found, or the one provider the member asked for could not be found. Nobody was contacted. detail says which.
other detail explains.

detail is a short narrative of what happened and what the member can do. A person at Sunny reviews every failure before it is sent, so status stays in_progress and failure stays null until then.

To try again after a failure, create a new request.