Propagator Group appointments API
Classes and group sessions, with their participants and slots.
Classes and group sessions, with their participants and slots.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/propagator-health:propagator-health-group-appointments-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Propagator Unified Health Group appointments API
description: 'A unified health API that acts as an abstraction layer between API consumers and various Practice Management Systems (PMS) and health systems. It provides a standardized interface for health-related operations across different backend systems. | | |
|---|---|
| API | `https://propagator.health/v1` |
| FHIR R4 | `https://propagator.health/v1/fhir/r4` |
| OpenID Connect issuer | `https://propagator.health` |
| Vendor sandbox | `https://sandbox.propagator.health` |
Start with Authentication, then build against the vendor sandbox before you call a clinic''s live system. FHIR describes the same data as HL7 FHIR R4. # Authentication
The API is protected by OpenID Connect. The issuer is `https://propagator.health`, and everything a client needs is in its discovery document:
```bash
curl -s https://propagator.health/.well-known/openid-configuration
```
| Endpoint | URL |
|---|---|
| Discovery | `https://propagator.health/.well-known/openid-configuration` |
| Authorization | `https://propagator.health/api/oidc/auth` |
| Token | `https://propagator.health/api/oidc/token` |
| Pushed authorization requests | `https://propagator.health/api/oidc/par` |
| JSON Web Key Set | `https://propagator.health/api/oidc/jwks` |
| UserInfo | `https://propagator.health/api/oidc/userinfo` |
Read endpoint URLs from discovery rather than hard-coding them. Access tokens are JWTs that live for ten minutes; mint a new one when it expires. ## OIDC clients
Every client is created in Propagator, for one of your applications:
| Client | Grants | Authentication | Use it for |
|---|---|---|---|
| **Application client** | `client_credentials`, `authorization_code` | `client_secret_basic` or `client_secret_post`; `private_key_jwt` when you register a JWKS URI | Your servers: reading and writing data for the clinics that installed your application |
| **Sandbox client** | `client_credentials` | as above | Building and testing against the vendor sandbox. Created on the sandbox''s own API access page, and valid only there |
Create the application client from your application''s API access page in Propagator. The secret is shown once; keep it on your servers and never ship it to a browser or a mobile app. Each client can be granted at most the scopes your application declares. Prefer `private_key_jwt`: register a JWKS URI and sign a client assertion with your own key, so no shared secret exists to leak. ## Client credentials for an install
When a clinic installs your application, the install gets an identifier: an opaque value starting `ext_in_`. Propagator holds the clinic''s practice system credentials; you never see them and there is nothing for you to configure. You find the identifier
- on the clinic''s install page in Propagator, reached from your application''s list of clinic installs, and
- in every webhook event about the install, as `installIdentifier`. Name the install in the token request, as an RFC 9396 authorization detail of type `install`:
```bash
curl -s -X POST https://propagator.health/api/oidc/token \
-u "$OPENID_CLIENT_ID:$OPENID_CLIENT_SECRET" \
-d grant_type=client_credentials \
-d scope="patients:read appointments:read" \
-d resource=https://propagator.health \
--data-urlencode ''authorization_details=[{"type":"install","identifier":"ext_in_...","actions":["read"]}]''
```
```json
{
"access_token": "eyJhbGciOiJ...",
"token_type": "Bearer",
"expires_in": 600,
"scope": "patients:read appointments:read"
}
```
The token reads that clinic''s data and nothing else:
- the install travels inside the token, so the API knows which clinic and which practice system to use without any further header;
- the scopes are capped by what the clinic approved when it installed your application, and by your client''s own scopes;
- the install must be live: once the clinic uninstalls, new tokens are refused with `invalid_authorization_details`, and tokens already issued stop working. Mint one token per install.'
version: 1.1.0
servers:
- url: https://propagator.health/v1
description: API (v1)
- url: https://sandbox.propagator.health/v1
description: Vendor sandbox (v1)
security:
- oauth2: []
- openId:
- openid
- authorizationHeader: []
tags:
- name: Group appointments
description: Classes and group sessions, with their participants and slots.
paths:
/group-appointments:
get:
summary: Search group appointments
description: Searches for group appointments/classes based on various criteria including location, practitioner, appointment type, and date range
operationId: searchGroupAppointments
security:
- oauth2:
- group-appointments:read
- openId:
- group-appointments:read
parameters:
- name: from
in: query
required: true
description: Start date for group appointment search (ISO 8601 format)
schema:
type: string
format: date-time
- name: to
in: query
required: true
description: End date for group appointment search (ISO 8601 format)
schema:
type: string
format: date-time
- name: locationId
in: query
description: Filter by location ID
schema:
type: string
- name: practitionerId
in: query
description: Filter by practitioner/staff ID
schema:
type: string
- name: appointmentTypeId
in: query
description: Filter by group appointment type/class ID
schema:
type: string
- name: cancelled
in: query
description: 'Nookal only: Filter by cancelled status'
schema:
type: boolean
- name: sort
in: query
description: 'Sort field(s) with optional direction. Format: field1:order,field2:order. Order is ''asc'' or ''desc'', defaults to ''asc''. Allowed fields: id, start, end. Default: start:desc'
schema:
type: string
responses:
'200':
description: Group appointments retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/GroupAppointmentsResponse'
'400':
description: Bad request - missing required parameters
'401':
description: Unauthorized
'500':
description: Internal server error
'502':
$ref: '#/components/responses/UpstreamFailure'
tags:
- Group appointments
post:
summary: Create group appointment
description: Creates a new group appointment (class) in the target PMS. Supported for Cliniko, Halaxy, and Nookal only; other targets return 501. You may include target-specific optional fields documented for ClinikoAppointmentExtensions, HalaxyAppointmentExtensions, and NookalAppointmentExtensions on POST /appointments (e.g. Cliniko repeatRule, Halaxy appointmentStatus, Nookal caseId).
operationId: createGroupAppointment
security:
- oauth2:
- group-appointments:create
- openId:
- group-appointments:create
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/GroupAppointmentCreateRequest'
responses:
'201':
description: Group appointment created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/GroupAppointmentResponse'
'400':
description: Bad request
'401':
description: Unauthorized
'500':
description: Internal server error
'501':
description: Not implemented for this target (e.g. Elixir, Gensolve)
'502':
$ref: '#/components/responses/UpstreamFailure'
tags:
- Group appointments
/group-appointments/{id}:
get:
summary: Get group appointment by ID
description: Retrieves a specific group appointment instance by its ID
operationId: getGroupAppointmentById
security:
- oauth2:
- group-appointments:read
- openId:
- group-appointments:read
parameters:
- name: id
in: path
required: true
description: The group appointment ID
schema:
type: string
responses:
'200':
description: Group appointment retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/GroupAppointmentResponse'
'401':
description: Unauthorized
'404':
description: Group appointment not found
'500':
description: Internal server error
'502':
$ref: '#/components/responses/UpstreamFailure'
tags:
- Group appointments
/group-appointments/{id}/attendees:
get:
summary: List the attendee roster of a group appointment
description: The per-patient enrolment records for one class. Read-only - enrolment is written through the participants resource, so this path deliberately offers no second way to change it. The identical roster is served by GET /group-appointments/{id}/participants; the two paths are one resource reached two ways.
operationId: listGroupAppointmentAttendees
security:
- oauth2:
- group-appointment-attendees:read
- openId:
- group-appointment-attendees:read
parameters:
- name: id
in: path
required: true
description: The group appointment ID
schema:
type: string
- name: patientId
in: query
required: false
description: Restrict to one patient's enrolment
schema:
type: string
- name: patientIds
in: query
required: false
description: Comma-separated patient ids; combined as a union with patientId when both are given
schema:
type: string
- name: cancelled
in: query
required: false
description: Tri-state - absent returns everything, `false` excludes cancelled records, `true` returns only them
schema:
type: string
enum:
- 'true'
- 'false'
- name: archived
in: query
required: false
description: Tri-state - absent returns everything, `false` excludes archived records, `true` returns only them
schema:
type: string
enum:
- 'true'
- 'false'
- name: sort
in: query
required: false
description: '`field[:asc|desc]`; fields: id, created, updated, cancelled. A single field only, because the vendor honours one.'
schema:
type: string
responses:
'200':
description: Attendees retrieved successfully
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/GroupAppointmentAttendee'
'400':
description: Bad request - an unaccepted filter or sort value
'401':
description: Unauthorized
'501':
description: Not supported by this PMS
'502':
$ref: '#/components/responses/UpstreamFailure'
tags:
- Group appointments
/group-appointments/{id}/participants:
get:
summary: List the participant roster of a group appointment
description: The same enrolment records GET /group-appointments/{id}/attendees returns, reached by the participants path - one roster whichever path a caller uses. The write half of this path (POST/DELETE) describes an add/remove result, which is a different shape from the record itself, so the read half carries the attendee schema.
operationId: listGroupAppointmentParticipants
security:
- oauth2:
- group-appointment-participants:read
- openId:
- group-appointment-participants:read
parameters:
- name: id
in: path
required: true
description: The group appointment ID
schema:
type: string
- name: patientId
in: query
required: false
description: Restrict to one patient's enrolment
schema:
type: string
- name: patientIds
in: query
required: false
description: Comma-separated patient ids; combined as a union with patientId when both are given
schema:
type: string
- name: cancelled
in: query
required: false
description: Tri-state - absent returns everything, `false` excludes cancelled records, `true` returns only them
schema:
type: string
enum:
- 'true'
- 'false'
- name: archived
in: query
required: false
description: Tri-state - absent returns everything, `false` excludes archived records, `true` returns only them
schema:
type: string
enum:
- 'true'
- 'false'
- name: sort
in: query
required: false
description: '`field[:asc|desc]`; fields: id, created, updated, cancelled. A single field only, because the vendor honours one.'
schema:
type: string
responses:
'200':
description: Participants retrieved successfully
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/GroupAppointmentAttendee'
'400':
description: Bad request - an unaccepted filter or sort value
'401':
description: Unauthorized
'501':
description: Not supported by this PMS
'502':
$ref: '#/components/responses/UpstreamFailure'
tags:
- Group appointments
post:
summary: Add participant to group appointment
description: Books a patient into a specific group appointment instance
operationId: addParticipantToGroupAppointment
security:
- oauth2:
- group-appointment-participants:create
- openId:
- group-appointment-participants:create
parameters:
- name: id
in: path
required: true
description: The group appointment ID
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- clientId
properties:
clientId:
type: string
description: Patient/client ID to add to the group appointment
responses:
'200':
description: Participant added successfully
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
participantId:
type: string
'400':
description: Bad request - missing required fields or appointment is full
'401':
description: Unauthorized
'404':
description: Group appointment not found
'500':
description: Internal server error
'502':
$ref: '#/components/responses/UpstreamFailure'
tags:
- Group appointments
delete:
summary: Remove participant from group appointment
description: Removes a patient/participant from a specific group appointment instance. This operation is idempotent - removing an already-removed participant will succeed silently.
operationId: removeParticipantFromGroupAppointment
security:
- oauth2:
- group-appointment-participants:delete
- openId:
- group-appointment-participants:delete
parameters:
- name: id
in: path
required: true
description: The group appointment ID
schema:
type: string
- name: clientId
in: query
required: true
description: Patient/client ID to remove from the group appointment
schema:
type: string
responses:
'204':
description: Participant removed successfully (no content)
'400':
description: Bad request - missing required parameters
'401':
description: Unauthorized
'404':
description: Group appointment not found
'500':
description: Internal server error
'502':
$ref: '#/components/responses/UpstreamFailure'
tags:
- Group appointments
/group-appointments/{id}/slots:
get:
summary: Get available slots for group appointment
description: Retrieves availability information for a specific group appointment instance (total spots, booked spots, available spots)
operationId: getGroupAppointmentSlots
security:
- oauth2:
- group-appointment-availabilities:get
- openId:
- group-appointment-availabilities:get
parameters:
- name: id
in: path
required: true
description: The group appointment ID
schema:
type: string
responses:
'200':
description: Slots information retrieved successfully
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
totalSpots:
type: integer
description: Total number of spots available
bookedSpots:
type: integer
description: Number of spots already booked
availableSpots:
type: integer
description: Number of spots still available
'401':
description: Unauthorized
'404':
description: Group appointment not found
'500':
description: Internal server error
'502':
$ref: '#/components/responses/UpstreamFailure'
tags:
- Group appointments
components:
schemas:
GroupAppointmentAttendee:
type: object
description: The per-patient enrolment record for one class. Distinct from the add/remove result the participants POST/DELETE return - an attendee is the record itself, with its enrolment state and its own identity. `booking` is carried as the vendor's own link object rather than flattened, because the vendor exposes the underlying booking only as a URL; `bookingId` is that link's trailing id, offered so a caller correlating records does not have to parse a URL.
required:
- id
- groupAppointmentId
- status
properties:
id:
type: string
groupAppointmentId:
type: string
patientId:
type: string
patientCaseId:
type: string
status:
type: string
description: Enrolment state, narrowed from the vendor's separate timestamps and flags - `archived`, `cancelled`, `arrived` or `booked`. Deliberately not an enum, for the same reason Appointment.status is not - a vendor gaining a state must not turn a read into a validation failure.
arrived:
type: boolean
notes:
type: string
cancelledAt:
type: string
archivedAt:
type: string
createdAt:
type: string
updatedAt:
type: string
bookingId:
type: string
booking:
type: object
properties:
links:
type: object
required:
- self
properties:
self:
type: string
GroupAppointment:
type: object
properties:
id:
type:
- string
- 'null'
description: Group appointment ID
locationId:
type:
- string
- 'null'
description: Location/business ID
practitionerId:
type:
- string
- 'null'
description: Practitioner ID
appointmentTypeId:
type:
- string
- 'null'
description: Appointment type ID
startTime:
type:
- string
- 'null'
format: date-time
description: Start time of the group appointment
endTime:
type:
- string
- 'null'
format: date-time
description: End time of the group appointment
duration:
type: integer
description: Duration in minutes
notes:
type:
- string
- 'null'
description: Notes for the group appointment
required:
- id
- locationId
- practitionerId
- appointmentTypeId
- startTime
- endTime
GroupAppointmentCreateRequestBase:
type: object
description: 'Required fields for creating a group appointment. locationId maps to Cliniko business_id. endTime is required for Halaxy; optional for Cliniko (derived from type duration when omitted).
'
required:
- appointmentTypeId
- locationId
- practitionerId
- startTime
properties:
slotId:
type: string
description: Slot ID (unused for most group creates)
clientId:
type: string
description: Optional initial patient to attach when the target API supports it on create
appointmentTypeId:
type: string
description: Group appointment type / class type ID
locationId:
type: string
description: Location / business ID
practitionerId:
type: string
description: Practitioner / provider ID
startTime:
type: string
format: date-time
description: Start time (ISO 8601)
endTime:
type: string
format: date-time
description: End time (ISO 8601); required for Halaxy
maxParticipants:
type: integer
description: Maximum attendees; maps to Cliniko max_attendees when set
notes:
type: string
description: Notes for the group appointment (Cliniko and others)
clientIds:
type: array
description: Optional initial participant patient IDs (Cliniko patient_ids when supported)
items:
type: string
GroupAppointmentCreateRequest:
allOf:
- $ref: '#/components/schemas/GroupAppointmentCreateRequestBase'
description: 'Core create body. Targets may accept additional fields from ClinikoAppointmentExtensions, HalaxyAppointmentExtensions, or NookalAppointmentExtensions (see POST /appointments).
'
GroupAppointmentsResponse:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/GroupAppointment'
GroupAppointmentResponse:
type: object
description: Single group appointment wrapped in data envelope
properties:
data:
$ref: '#/components/schemas/GroupAppointment'
responses:
UpstreamFailure:
description: 'Bad gateway. The practice management system failed (it answered a 5xx or timed out), or answered something this API cannot faithfully serve. The fault is upstream, not in the request: a read may be retried later. A write may or may not have been applied, so read the record back before retrying one.'
securitySchemes:
openId:
type: openIdConnect
openIdConnectUrl: https://propagator.health/.well-known/openid-configuration
authorizationHeader:
type: apiKey
in: header
name: Authorization
description: "JWT signed with HS256 algorithm using a shared secret.\n\n## JWT Structure\n\n### Header\nThe JWT header must contain:\n- `alg`: \"HS256\" (signing algorithm)\n- `kid`: Customer key ID - identifies the API consumer for secret lookup (provided during onboarding)\n\n### Example Header\n```json\n{\n \"alg\": \"HS256\",\n \"typ\": \"JWT\",\n \"kid\": \"customer123\"\n}\n```\n\n### Payload\nThe JWT payload must contain:\n- `iat`: Issued at timestamp (Unix epoch)\n- `exp`: Expiration timestamp (Unix epoch)\n- `auth`: Object containing target system and credentials (see Auth Schemas below)\n\n### Signing\nThe JWT must be signed using the shared secret provided during customer onboarding (along with the `kid`). The signature is verified on each request.\n\n## Example JWT Payload\n```json\n{\n \"iat\": 1699900000,\n \"exp\": 1699903600,\n \"auth\": {\n \"target\": \"gensolve\",\n \"username\": \"api_user\",\n \"password\": \"api_password\",\n \"vendorId\": \"vendor123\",\n \"secretKey\": \"secret123\",\n \"organisationName\": \"My Practice\"\n }\n}\n```\n\n## Usage\nPass the signed JWT directly in the Authorization header:\n```\nAuthorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImN1c3RvbWVyMTIzIn0...\n```\n\nSee the Auth schemas (GensolveAuth, MedtechAuth, ClinikoAuth, SploseAuth, ElixirAuth, HalaxyAuth, NookalAuth, PracsuiteAuth) for target-specific credential requirements.\n"
oauth2:
type: oauth2
description: OpenID Connect at this exchange's issuer. Client credentials for your servers (name the install in `authorization_details`, see Authentication), or authorization code with PKCE when a person at the clinic approves your application.
flows:
clientCredentials:
tokenUrl: https://propagator.health/api/oidc/token
scopes:
appointment-conflicts:read: ''
appointment-type-billable-items:read: ''
appointment-type-practitioners:read: ''
appointment-type-products:read: ''
appointment-types:read: ''
appointments:create: ''
appointments:delete: ''
appointments:read: ''
appointments:update: ''
availabilities:read: ''
billable-items:read: ''
communications:create: ''
communications:read: ''
concession-prices:read: ''
concession-types:read: ''
group-appointment-attendees:read: ''
group-appointment-availabilities:get: ''
group-appointment-participants:create: ''
group-appointment-participants:delete: ''
group-appointment-participants:read: ''
group-appointment-types:read: ''
group-appointments:create: ''
group-appointments:read: ''
invoices:read: ''
locations:read: ''
notes:create: ''
notes:read: ''
patients:create: ''
patients:delete: ''
patients:read: ''
patients:update: ''
payments:create: ''
payments:delete: ''
payments:read: ''
practitioners:read: ''
products:create: ''
products:read: ''
products:update: ''
taxes:read: ''
vendors:read: ''
authorizationCode:
authorizationUrl: https://propagator.health/api/oidc/auth
tokenUrl: https://propagator.health/api/oidc/token
x-usePkce: SHA-256
scopes:
openid: ''
profile: ''
organisation: ''
appointment-conflicts:read: ''
appointment-type-billable-items:read: ''
appointment-type-practitioners:read: ''
appointment-type-products:read: ''
appointment-types:read: ''
appointments:create: ''
appointments:delete: ''
appointments:read: ''
appointments:update: ''
availabilities:read: ''
billable-items:read: ''
communications:create: ''
communications:read: ''
concession-prices:read: ''
concession-types:read: ''
group-appointment-attendees:read: ''
group-appointment-availabilities:get: ''
group-appointment-participants:create: ''
group-appointment-participants:delete: ''
group-appointment-participants:read: ''
group-appointment-types:read: ''
group-appointments:create: ''
group-appointments:read: ''
invoices:read: ''
locations:read: ''
notes:create: ''
notes:read: ''
patients:create: ''
patients:delete: ''
patients:read: ''
patients:update: ''
payments:create: ''
payments:delete: ''
payments:read: ''
practitioners:read: ''
products:create: ''
products:read: ''
products:update: ''
taxes:read: ''
vendors:read: ''
x-tagGroups:
- name: Patients and records
tags:
- Patients
- Notes
- Communications
- Conditions
- Assessments
- Events
- Contracts
- Fundings
- name: Scheduling
tags:
- Appointments
- Appointment types
- Availabilities
- Group appointments
- Group appointment types
- name: Practice
tags:
- Practitioners
- Locations
- name: Billing
tags:
- Invoices
- Payments
- Billable items
- Products
- Taxes
- Concession types
- name: Service
tags:
- Vendors
- Version