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
httpsURL, reachable from the internet. Plainhttpand addresses that only resolve inside a clinic's network will not work. - Voxlera does not follow redirects. A
301/302is treated as a failure, so give the final URL.
Authentication
Every request carries a bearer API key that you issue to the clinic:
GET /v1/capabilities HTTP/1.1
Host: pms.example.com
Authorization: Bearer pmsk_live_a1b2c3
Accept: application/jsonReturn 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:00or2026-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:
{
"data": [{ "id": "d_1", "name": "Dr. Ada Example", "active": true }],
"nextCursor": "eyJvIjoyMH0"
}limitis 1 to 200. Honour it; you may return fewer items. Voxlera always sendslimit(200). If it is omitted, the demo PMS defaults to 50; pick a sensible default, and clients should always sendlimitexplicitly.nextCursoris an opaque string, ornullon the last page. Voxlera passes it back unchanged ascursor.- Return a stable order so a page boundary never skips or repeats an item.
Errors
Any non-2xx response has this body:
{ "error": { "code": "not_found", "message": "No patient with that id" } }| Status | When |
|---|---|
400 | The request is malformed or fails validation. |
401 | Missing or invalid API key. |
404 | An id in the path does not exist. Use 404 for every unknown id. |
409 | A state conflict, or an Idempotency-Key reused with a different body. |
429 | You are rate limiting Voxlera. Send a Retry-After header (seconds); Voxlera waits that long. |
5xx | Temporary 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.
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.