List bookings
/care/v1/booking/query/documentsbooking:readBAA requiredReturns a page of the visits your company booked, newest visit first. Visits booked by the patient themselves or by another company are never listed, and neither are visits of patients whose connection with your company is no longer active. The list has no note; read one booking to get it.
The status filter works on the status last seen for each booking, which is refreshed whenever
a booking is read, so a visit that changed outside this API can show under its old status until
it is read. The status of every booking in the answer is current.
Needs the booking:read scope.
Query parameters
patientstring (uuid)Keep only the visits of this patient.
statusenumKeep only visits in this status:
booked,meeting_rescheduled,meeting_completed,meeting_cancelledorno_show.bookedmeeting_rescheduledmeeting_completedmeeting_cancelledno_show
fromstring (date-time)Keep only visits that start at or after this time, with a UTC offset.
tostring (date-time)Keep only visits that start at or before this time, with a UTC offset.
pageintegerThe page number, from 1.
Minimum 1 · Default 1
sizeintegerThe page size, at most 50.
Minimum 1 · Maximum 50 · Default 10
Response 200
dataarray of BookingrequiredThe bookings of the page, newest visit first.
Show child attributesHide child attributes
booking_idstringrequiredThe ID of the booking.
booking_namestringrequiredThe name of the booking.
client_notestringnullableThe note for the specialist. Only when you read one booking.
created_atstring (date-time)requiredWhen your company booked the visit.
end_datestring (date-time)requiredWhen the visit ends, in UTC.
has_reportbooleanrequiredWhether a report exists for the visit.
is_insurance_selectedbooleanrequiredWhether insurance was selected. Always
falsefor a booking made through this API.service_snapshotBookingServicerequiredThe service, as of the booking.
Show child attributesHide child attributes
accepted_insurance_providersarray of stringThe insurance providers accepted for the service.
is_insurance_acceptedbooleanrequiredWhether insurance was accepted for the service.
service_currencystringrequiredThe currency of the price.
service_descriptionstringnullableThe description of the service.
service_duration_in_minutesintegerrequiredThe length of the visit in minutes.
service_idstringrequiredThe ID of the service.
service_image_urlstringnullableThe URL of an image of the service.
service_mode_of_deliveryenumrequiredHow the visit is delivered:
In PersonorVirtual.In PersonVirtual
service_namestringrequiredThe name of the service.
service_price_in_centsintegerrequiredThe price in cents, as it was when the visit was booked.
specialiststringrequiredThe ID of the specialist.
specialist_snapshotBookingSpecialistrequiredThe specialist, as of the booking.
Show child attributesHide child attributes
first_namestringrequiredThe first name.
last_namestringrequiredThe last name.
profile_picture_urlstringnullableThe URL of the photo.
specialist_idstringrequiredThe ID of the specialist.
specialist_typeenumrequiredThe kind of specialist.
DietitianCertified Nutrition SpecialistPhysical Trainer
start_datestring (date-time)requiredWhen the visit starts, in UTC.
statusenumrequiredThe status of the booking:
booked,meeting_rescheduled,meeting_completed,meeting_cancelledorno_show.bookedmeeting_rescheduledmeeting_completedmeeting_cancelledno_show
timezonestringrequiredThe IANA timezone the visit was booked in.
updated_atstring (date-time)requiredWhen the record of the visit last changed.
userstringrequiredThe ID of the patient.
has_nextbooleanrequiredWhether the data has a next page or not
has_previousbooleanrequiredWhether the data has a previous page or not
pageintegerrequiredThe page number of the data
sizeintegerrequiredThe size of the data
totalintegerrequiredThe total number of data
total_pagesintegerrequiredThe total number of pages
Errors
Every error has this shape. Branch on code, not on message. request_id equals the X-Request-Id response header.
{
"error": {
"code": "not_found",
"message": "The object does not exist.",
"request_id": "req_0123456789abcdef0123456789abcdef"
}
}| Status | Code | Meaning |
|---|---|---|
400 | bad_request | The from time must not be after the to time. |
401 | invalid_api_key | The API key is missing or not valid. |
403 | company_archived | This company is archived. |
403 | company_not_live | The company must be live to use prod keys. |
403 | company_suspended | This company is suspended. |
403 | scope_not_granted | This API key does not have the booking:read scope. |
422 | validation_error | query.size: Input should be less than or equal to 50 |
429 | rate_limited | Too many requests. Wait before calling again. |
500 | internal_error | Something went wrong on our side. Please try again later. |
502 | upstream_error | A Nurish'd service could not complete the request. |
503 | upstream_unavailable | A Nurish'd service is unavailable. Please try again later. |
504 | upstream_timeout | A Nurish'd service did not answer in time. Please try again. |