Book an individual appointment

Requires appointments:write, an Idempotency-Key and a key with the booking API switched on. Books the slot through the same booking code the web app uses, so the practice sees it in the diary at once; the end is the start plus the type's duration, and the slot must be one GET /appointments/availability offers (else 409 booking_conflict). Any meeting type but a class can be booked, including video, types that need a room or other resource, and types synced to external calendars; class types are refused with 422. A type with a deposit set is booked like any other: no deposit is taken or requested. The client is told by the practice's usual confirmation unless hold is sent. A priced type (price above zero) also needs payments:write, and priced bookings enabled for the environment (else 422); the booking's invoice is then issued for the full price, open, with no online pay link, and its id is answered as invoiceId. Nothing is charged: record the payment you take with POST /invoices/payment-records. Repeating a request with the same Idempotency-Key and body answers 200 with replayed true and books nothing again; the same key with a different body (a different note included) is 409 idempotency_conflict. A request that failed part-way is finished by repeating it with the same key.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
string
required
string
date-time
required

RFC 3339 date-time of a real calendar date; numbers, arrays and lenient spellings are refused.

string | null
string | null
string
length ≤ 500

Optional free text from your customer for the clinic, at most 500 characters after surrounding spaces are removed. It is stored as the appointment's comment, where the web app shows a booking's notes, and answered as note. An empty or blank note is no note. Any other type (null included) is refused with 400. Do not send clinical or payment details in it.

enum

Hold the booking while your customer pays, instead of confirming it now. true holds it for 20 minutes; an object with minutes (a whole number from 1 to 30) holds it for that long. A held booking takes its slot like any other, but no confirmation, email, SMS or WhatsApp goes to the client or the practitioner until POST /appointments/{id}/confirm. If it is not confirmed in time the booking is cancelled and its slot released, without telling the client. Any other value is refused with 400.

Headers
string
required
length ≤ 100
Responses

400

A field not listed, a non-string reference field, missing client or type, a startDate that is not an RFC 3339 real calendar date, a malformed hold or note, or a missing Idempotency-Key.

403

Missing scope (payments:write for a priced type), or a practitioner whose diary you may not book.

404

Client, type, case, location or practitioner not found, not in your practice, or not assigned to the practitioner.

409

The slot is not offered or was taken (booking_conflict), or the Idempotency-Key was used with another body or its first request is still running (idempotency_conflict).

422

A class type, a type with no usable duration, or a priced type that cannot be booked here (priced bookings disabled, a taxed or non two-decimal price).

503

The booking API is not enabled for this key, or is temporarily unavailable.

Language
Credentials
Bearer
API Key
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json