Skip to content
Clinic guideDevelopers
Open app
Overview
Introduction
Core concepts
Website embeds
Embeds overview
Consultation form
International enquiry form
PMS Connect
Overview
Quickstart
Authentication and conventions
Endpoints
Webhooks
Tiers
Testing
FAQ
API
API status and roadmap
Conventions
Security
Security and data handling

PMS Connect

Authentication and conventions

Base URL, API key, timestamps, pagination, errors, rate limits and idempotency for the PMS Connect contract.

These rules apply to every endpoint. They are small on purpose.

#Base URL

All operations live under {baseUrl}/v1. The base URL you give a clinic is what they paste into Voxlera, for example https://pms.example.com (so GET https://pms.example.com/v1/capabilities).

  • It must be a public https URL, reachable from the internet. Plain http and addresses that only resolve inside a clinic's network will not work.
  • Voxlera does not follow redirects. A 301/302 is treated as a failure, so give the final URL.

#Authentication

Every request carries a bearer API key that you issue to the clinic:

http
GET /v1/capabilities HTTP/1.1
Host: pms.example.com
Authorization: Bearer pmsk_live_a1b2c3
Accept: application/json

Return 401 with the standard error body for a missing or wrong key. Use one key per clinic and let the clinic rotate it.

#Format

  • Requests and responses are JSON (Content-Type: application/json).
  • Timestamps are RFC 3339 with an explicit offset: 2026-11-12T09:30:00+03:00 or 2026-11-12T06:30:00Z. A timestamp without an offset is rejected.
  • Dates of birth are YYYY-MM-DD.
  • Phone numbers are E.164: +905551112233.
  • Ids are opaque strings. Voxlera stores and echoes them and never parses them.

#Pagination

List operations take ?cursor=&limit= and return a page:

json
{
  "data": [{ "id": "d_1", "name": "Dr. Ada Example", "active": true }],
  "nextCursor": "eyJvIjoyMH0"
}
  • limit is 1 to 200. Honour it; you may return fewer items. Voxlera always sends limit (200). If it is omitted, the demo PMS defaults to 50; pick a sensible default, and clients should always send limit explicitly.
  • nextCursor is an opaque string, or null on the last page. Voxlera passes it back unchanged as cursor.
  • Return a stable order so a page boundary never skips or repeats an item.

#Errors

Any non-2xx response has this body:

json
{ "error": { "code": "not_found", "message": "No patient with that id" } }
StatusWhen
400The request is malformed or fails validation.
401Missing or invalid API key.
404An id in the path does not exist. Use 404 for every unknown id.
409A state conflict, or an Idempotency-Key reused with a different body.
429You are rate limiting Voxlera. Send a Retry-After header (seconds); Voxlera waits that long.
5xxTemporary failure on your side.

code is a short machine-readable string of your choosing; message is for humans. Do not put patient details in either.

#Idempotency

Voxlera sends an Idempotency-Key header on writes, so a retry after a timeout can never double-book a patient.

  • A repeated key with the same body must return the same result as the first call. Keep keys for at least 24 hours.
  • The same key with a different body must return 409.
http
POST /v1/appointments HTTP/1.1
Authorization: Bearer pmsk_live_a1b2c3
Idempotency-Key: 6f1c2d9e-0b3a-4a51-9c1e-2f4d7a8b9c10
Content-Type: application/json

{"patientId":"p_1","doctorId":"d_1","startsAt":"2026-11-12T09:30:00+03:00","treatmentType":"Checkup"}

#Next

Endpoints lists every operation.

PreviousQuickstartNextEndpoints