PlaySpace

Endpoint summary

Every operation the Partner API serves: 34 across 19 paths. This page is a map — the interactive reference carries the parameters, request and response schemas, and examples for each one.

Every path below is relative to the base URL for your environment, and every request carries your organisation's access token as Authorization: Bearer <token>. A token that names a practitioner is refused on every operation with 403 and problem type delegation-not-enabled. The scope column names the scope an operation requires; a blank cell means the operation needs no scope.

Meta

Service health and connectivity. Use these endpoints to confirm a token authenticates and the API is reachable before exercising any business endpoint.

Method Path What it does Scope
GET /v1/partner/health Partner API health check

Practitioners

Clinic-bound provider records. Every practitioner belongs to exactly one clinic. A practitioner’s email maps to a login identity, so an email already in use returns 409. Deleting a practitioner de-lists rather than destroys it.

Method Path What it does Scope
GET /v1/partner/practitioners List partner practitioners practitioners:read
POST /v1/partner/practitioners Create a partner practitioner practitioners:write
GET /v1/partner/practitioners/{id} Get a partner practitioner by id practitioners:read
PATCH /v1/partner/practitioners/{id} Update a partner practitioner practitioners:write
DELETE /v1/partner/practitioners/{id} Soft-delete a partner practitioner practitioners:delete
POST /v1/partner/practitioners/{id}/sign-in-codes Mint a sign-in code for a clinician sessions:write

Clinics

Clinics are the partition that practitioners, patients, and appointments belong to. Deleting a clinic de-lists rather than destroys it. A clinic cannot be deleted while it still has active practitioners, patients, or appointments: that returns 409 with problem type clinic-not-empty and counts of the blocking dependents. Clear or reassign the dependents first.

Method Path What it does Scope
GET /v1/partner/clinics List partner clinics clinics:read
POST /v1/partner/clinics Create a partner clinic clinics:write
GET /v1/partner/clinics/{id} Get a partner clinic by id clinics:read
PATCH /v1/partner/clinics/{id} Update a partner clinic clinics:write
DELETE /v1/partner/clinics/{id} Soft-delete a partner clinic clinics:delete

Patients

Patient records are maintained per organization: a patient created by your organization is yours alone, and the same person may exist independently under another organization. Email is not unique — duplicate emails within or across organizations are legitimate, because families commonly share an inbox. These records carry protected health information; handle and store them accordingly.

Method Path What it does Scope
GET /v1/partner/patients List patients patients:read
POST /v1/partner/patients Create a patient patients:write
GET /v1/partner/patients/{id} Get a patient by id patients:read
PATCH /v1/partner/patients/{id} Update a patient patients:write
DELETE /v1/partner/patients/{id} Soft-delete a patient patients:delete

Appointments

Appointments link one practitioner and one patient who belong to the same clinic. There is no delete endpoint: cancel an appointment with PATCH setting status to cancelled. Cancelling removes the appointment from connected calendars and notifies the patient.

Method Path What it does Scope
GET /v1/partner/appointments List appointments appointments:read
POST /v1/partner/appointments Create an appointment appointments:write
GET /v1/partner/appointments/{id} Get an appointment appointments:read
PATCH /v1/partner/appointments/{id} Update an appointment appointments:write
POST /v1/partner/appointments/{id}/session-links Get an appointment's patient join link appointments:read

Settings

Your organization's PlaySpace settings: the origins allowed to frame PlaySpace, the areas your clinicians see, patient contact, recording and video.

Method Path What it does Scope
GET /v1/partner/settings Read your organisation's settings
PATCH /v1/partner/settings Change your organisation's settings

Webhooks

Webhook endpoints receive a signed event whenever a patient, appointment, session, note or form changes. Events carry ids and a version, never patient details: fetch the record to see what changed. Delivery is at least once and unordered; deduplicate on the event id and keep the highest version. A gap in sequence means you missed an event, which GET /v1/partner/events returns for 30 days.

Method Path What it does Scope
GET /v1/partner/webhook-endpoints List webhook endpoints practitioners:read
POST /v1/partner/webhook-endpoints Create a webhook endpoint practitioners:write
GET /v1/partner/webhook-endpoints/{id} Get a webhook endpoint practitioners:read
PATCH /v1/partner/webhook-endpoints/{id} Update a webhook endpoint practitioners:write
DELETE /v1/partner/webhook-endpoints/{id} Delete a webhook endpoint practitioners:write
POST /v1/partner/webhook-endpoints/{id}/rotate-secret Rotate a webhook endpoint secret practitioners:write
POST /v1/partner/webhook-endpoints/{id}/test Send a test event practitioners:write
GET /v1/partner/webhook-endpoints/{id}/deliveries List deliveries to a webhook endpoint practitioners:read
GET /v1/partner/events List events
GET /v1/partner/events/{id} Get an event

What is not here

This table is the whole external surface. If an operation is not listed, no route serves it — see what you can build for the shape of the platform, and the machine-readable OpenAPI document for the full contract.