Create appointment
This endpoint books an appointment for the given patient with the given provider at the specified location. When is_guardian is true, the booking is made by a guardian and a patient object with the dependent's details must be provided.
Authorization
Authorization In: header
Query Parameters
Used to scope the request to the specified institution
Used to scope the request to the specified location
int32Send NexHealth appointment created notifications to patient
falseHeader Parameters
The NexHealth API version
"v3.0.0"Request Body
application/json
Create appointment
Number of appointments (default:1, max:5) that can be booked in a single slot. Only supported for athenahealth, eClinicalWorks, ModMed and NextGen.
int321 <= value <= 51Appointment detail object
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/appointments?subdomain=string&location_id=0" \ -H "Nex-Api-Version: v3.0.0" \ -H "Content-Type: application/json" \ -d '{ "appt": { "patient_id": 2897, "provider_id": 104, "start_time": "2024-04-15T15:00:00Z" } }'{ "code": false, "description": "Description", "error": [ "Error message" ], "data": { "appt": { "id": 1822, "patient_id": 2897, "provider_id": 104, "provider_name": "Dr. John Smith", "start_time": "2020-06-05T20:16:57.007Z", "confirmed": true, "patient_missed": false, "created_at": "2020-06-05T20:16:57.007Z", "updated_at": "2020-06-05T20:16:57.007Z", "note": "Patient has been having a cough for 3 days", "end_time": "2020-06-05T20:16:57.007Z", "unavailable": false, "cancelled": false, "timezone": "America/New_York", "institution_id": 1, "appointment_type_id": 27, "checkin_at": "2020-06-05T20:16:57.007Z", "location_id": 1, "foreign_id": "94", "foreign_id_type": "msg-dentrix-DataSource-100", "misc": { "is_booked_on_nexhealth": true }, "last_sync_time": "2020-06-05T20:16:57.007Z", "patient_confirmed": false, "created_by_user_id": 197, "is_guardian": false, "patient_confirmed_at": "2020-06-05T20:16:57.007Z", "cancelled_at": "2020-06-05T20:16:57.007Z", "is_new_clients_patient": false, "confirmed_at": "2020-06-05T20:16:57.007Z", "sooner_if_possible": false, "operatory_id": 181, "checked_out": false, "checked_out_at": "2020-06-05T20:16:57.007Z", "referrer": "http://mypractice.com/book", "is_past_patient": true, "timezone_offset": "-4:00" }, "stripe_client_secret": "string" }, "count": 2}View appointments GET
This endpoint returns the appointments starting within the requested time window, narrowed down by the optional filters configured. At least one of location_id or foreign_id must be provided.
Retrieve bearer token POST
This endpoint exchanges an API key for a JWT bearer token to authenticate subsequent requests.