Skip to main content
Each example builds one integration from start to finish against a real clinic: the sequence of calls, the exact request and response shapes, what to store on your side, and where things go wrong in practice. They use the mechanisms explained in the guides — querying, writing, booking, metadata, webhooks, errors — so read those for the why; read these for the how.

Online booking widget

TypeScript. Locations and types → free slots → find-or-create the patient → book with an idempotency key → handle a clash → cancel or move.

CRM sync

Python. Initial backfill by cursor with metadata as the id map, then webhooks for incremental changes in both directions.

Accounting export

PHP. Nightly invoices, line items, payments and allocations by updated; voids and refunds; money and timezone handled correctly.

Webhook receiver (coming soon)

Node. Verify the signature, acknowledge fast, process idempotently, fetch the record behind a thin event.
Every snippet assumes two environment variables:
Create the key under Developers → API Keys — read-only for the export and the receiver, read & write for the widget and the sync. Times you send are in the clinic timezone (GET /me tells you which); created / updated you read are UTC.