Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
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.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/propagator-health:propagator-health-patients-api"
All apis
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.
Get an API 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 Patients 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: Patients
description: The clinic's patients, as its practice management system holds them.
paths:
/patients:
get:
summary: Search patients
description: Searches for patients based on various criteria
operationId: searchPatients
security:
- oauth2:
- patients:read
- openId:
- patients:read
parameters:
- name: firstName
in: query
description: Patient first name
schema:
type: string
- name: nhi
in: query
description: Patient NHI
schema:
type: string
maxLength: 7
- name: lastName
in: query
description: Patient last name
schema:
type: string
- name: email
in: query
description: Patient email
schema:
type: string
- name: phone
in: query
description: 'Patient phone number. Note: for Medtech this has to be the number marked as mobile on the patient record'
schema:
type: string
- name: mobile
in: query
description: Patient mobile number
schema:
type: string
- name: dateOfBirth
in: query
description: Patient date of birth
schema:
type: string
format: date
- name: filterByUpdated
in: query
description: Filter by updated date range
schema:
type: boolean
- name: from
in: query
description: Start date for filtering (when filterByUpdated is true)
schema:
type: string
format: date-time
- name: to
in: query
description: End date for filtering (when filterByUpdated is true)
schema:
type: string
format: date-time
- 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, first_name, last_name, updated_at, booked_at. Default: id:desc'
schema:
type: string
responses:
'200':
description: Patients retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/PatientsSearchResponse'
example:
data:
- id: pat-1001
firstName: Elena
lastName: Marwick
fullName: Elena Marwick
dateOfBirth: '1984-03-12'
gender: female
email: elena.marwick@example.com
phones:
- type: mobile
number: +64 21 555 0142
address:
street: 12 Ponsonby Road
suburb: Ponsonby
city: Auckland
postalCode: '1011'
country: NZ
active: true
lastUpdated: '2026-10-30T21:14:00Z'
'401':
description: Unauthorized
'500':
description: Internal server error
'502':
$ref: '#/components/responses/UpstreamFailure'
tags:
- Patients
x-codeSamples:
- lang: Shell
label: Install token, then search
source: "TOKEN=$(curl -s -X POST https://propagator.health/api/oidc/token \\\n -u \"$OPENID_CLIENT_ID:$OPENID_CLIENT_SECRET\" \\\n -d grant_type=client_credentials \\\n -d scope=patients:read \\\n --data-urlencode 'authorization_details=[{\"type\":\"install\",\"identifier\":\"'\"$INSTALL\"'\",\"actions\":[\"read\"]}]' \\\n | jq -r .access_token)\n\ncurl -s \"https://propagator.health/v1/patients?lastName=Marwick\" \\\n -H \"Authorization: Bearer $TOKEN\""
- lang: Shell
label: Sandbox, one target
source: "TOKEN=$(curl -s -X POST https://sandbox.propagator.health/api/oidc/token \\\n -u \"$SANDBOX_CLIENT_ID:$SANDBOX_CLIENT_SECRET\" \\\n -d grant_type=client_credentials \\\n -d scope=patients:read \\\n | jq -r .access_token)\n\ncurl -s \"https://sandbox.propagator.health/v1/patients?lastName=Marwick\" \\\n -H \"Authorization: Bearer $TOKEN\" \\\n -H \"X-Propagator-Environment-Target: cliniko\""
post:
summary: Create patient
description: Creates a new patient record in the target Practice Management System
operationId: createPatient
security:
- oauth2:
- patients:create
- openId:
- patients:create
parameters:
- name: locationId
in: query
required: false
description: Optional location/site ID for the new patient (e.g. Gensolve Home Site). When provided, overrides the default from auth for targets that support it.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreatePatientRequest'
example:
firstName: Elena
lastName: Marwick
dateOfBirth: '1984-03-12'
gender: female
email: elena.marwick@example.com
responses:
'201':
description: Patient created successfully, or sent for the practice to approve (`requiresApproval`)
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Patient'
- $ref: '#/components/schemas/PatientAwaitingApproval'
'400':
description: Bad request - missing required fields
'401':
description: Unauthorized
'500':
description: Internal server error
'502':
$ref: '#/components/responses/UpstreamFailure'
tags:
- Patients
/patients/{id}:
get:
summary: Get patient by ID
description: Retrieves a specific patient by their ID
operationId: getPatientById
security:
- oauth2:
- patients:read
- openId:
- patients:read
parameters:
- name: id
in: path
required: true
description: The patient ID
schema:
type: string
responses:
'200':
description: Patient retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/Patient'
example:
id: pat-1001
firstName: Elena
lastName: Marwick
fullName: Elena Marwick
dateOfBirth: '1984-03-12'
gender: female
email: elena.marwick@example.com
phones:
- type: mobile
number: +64 21 555 0142
address:
street: 12 Ponsonby Road
suburb: Ponsonby
city: Auckland
postalCode: '1011'
country: NZ
active: true
lastUpdated: '2026-10-30T21:14:00Z'
'401':
description: Unauthorized
'404':
description: Patient not found
'500':
description: Internal server error
'502':
$ref: '#/components/responses/UpstreamFailure'
tags:
- Patients
patch:
summary: Update patient
description: Updates an existing patient record. All fields are optional - only provide fields that need to be updated.
operationId: updatePatient
security:
- oauth2:
- patients:update
- openId:
- patients:update
parameters:
- name: id
in: path
required: true
description: The patient ID
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdatePatientRequest'
responses:
'200':
description: Patient updated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/Patient'
'400':
description: Bad request - invalid fields
'401':
description: Unauthorized
'404':
description: Patient not found
'500':
description: Internal server error
'502':
$ref: '#/components/responses/UpstreamFailure'
tags:
- Patients
delete:
summary: Delete patient
description: Deletes an existing patient record by their ID
operationId: deletePatient
security:
- oauth2:
- patients:delete
- openId:
- patients:delete
parameters:
- name: id
in: path
required: true
description: The patient ID
schema:
type: string
responses:
'200':
description: Patient deleted successfully
'401':
description: Unauthorized
'404':
description: Patient not found
'500':
description: Internal server error
'502':
$ref: '#/components/responses/UpstreamFailure'
tags:
- Patients
components:
schemas:
PatientsSearchResponse:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Patient'
UpdatePatientRequest:
type: object
properties:
firstName:
type: string
description: Patient first name
lastName:
type: string
description: Patient last name
middleName:
type: string
description: Patient middle name
title:
type: string
description: Patient title (e.g., Mr, Mrs, Dr)
dateOfBirth:
type: string
format: date
description: Patient date of birth
email:
type: string
format: email
description: Patient email address
phones:
type: array
description: Patient phone numbers
items:
type: object
required:
- type
- number
properties:
type:
type: string
enum:
- mobile
- home
- work
- other
description: Phone number type
number:
type: string
description: Phone number
nhi:
type: string
description: National Health Index number (NZ)
maxLength: 7
gender:
type: string
description: 'Patient gender: one of male, female, other, unknown (FHIR administrative gender), on every target.'
enum:
- male
- female
- other
- unknown
notes:
type: string
description: Patient notes
address:
type: object
description: Patient address
properties:
line1:
type: string
line2:
type: string
line3:
type: string
street:
type: string
city:
type: string
state:
type: string
postalCode:
type: string
country:
type: string
description: Request body for updating a patient. All fields are optional - only provide fields that need to be updated.
Patient:
type: object
description: Patient. `id` is always present. Other properties, including firstName/lastName, are omitted when the PMS does not supply them — never null.
required:
- id
properties:
id:
type: string
description: Patient ID
firstName:
type: string
lastName:
type: string
middleName:
type: string
fullName:
type: string
title:
type: string
gender:
type: string
enum:
- male
- female
- other
- unknown
nhi:
type: string
description: NZ National Health Index number
active:
type: boolean
description: Whether the record is current; an archived or inactive record is false
status:
type: string
description: Where the record stands with the practice, the same words on every target; absent when the practice management system says nothing either way
enum:
- active
- inactive
- archived
- deceased
registrationStatus:
type: string
description: How the patient is registered (enrolled) with the practice, the same words on every target; served only where the practice management system records a registration, absent otherwise. A casual or visiting patient is still an active record.
enum:
- registered
- casual
- visitor
- not-registered
- registered-elsewhere
- transferred
- deceased
dateOfBirth:
type: string
format: date
email:
type: string
format: email
phones:
type: array
description: Patient phone numbers (matches PATCH UpdatePatientRequest)
items:
type: object
required:
- type
- number
properties:
type:
type: string
enum:
- mobile
- home
- work
- fax
- other
description: Phone number type
number:
type: string
description: Phone number
address:
type: object
properties:
street:
type: string
suburb:
type: string
city:
type: string
state:
type: string
postalCode:
type: string
country:
type: string
lastUpdated:
type: string
format: date-time
createdAt:
type: string
format: date-time
PatientAwaitingApproval:
type: object
description: A patient sent for the practice to approve (`requiresApproval`). It is not in the practice management system's register yet, so it has no `id`; its other properties are the `Patient` properties as sent.
required:
- awaitingApproval
properties:
awaitingApproval:
type: boolean
enum:
- true
additionalProperties: true
CreatePatientRequest:
type: object
required:
- firstName
- lastName
properties:
firstName:
type: string
description: Patient first name
lastName:
type: string
description: Patient last name
middleName:
type: string
description: Patient middle name
title:
type: string
description: Patient title (e.g., Mr, Mrs, Dr)
dateOfBirth:
type: string
format: date
description: Patient date of birth
email:
type: string
format: email
description: Patient email address
phone:
type: string
description: Patient phone number
mobile:
type: string
description: Patient mobile number
phones:
type: array
description: Patient phone numbers (matches PATCH UpdatePatientRequest)
items:
type: object
required:
- type
- number
properties:
type:
type: string
enum:
- mobile
- home
- work
- other
description: Phone number type
number:
type: string
description: Phone number
nhi:
type: string
description: National Health Index number (NZ)
maxLength: 7
gender:
type: string
description: 'Patient gender: one of male, female, other, unknown (FHIR administrative gender), on every target.'
enum:
- male
- female
- other
- unknown
address:
type: object
description: Patient address
properties:
street:
type: string
city:
type: string
state:
type: string
postalCode:
type: string
country:
type: string
generalPractitionerId:
type: string
description: The patient's general practitioner, as GET /v1/practitioners lists them. Sent to a practice management system that records a patient's practitioner; ignored by one that does not.
requiresApproval:
type: boolean
description: Send the patient for the practice to approve before it is added to the register. A practice management system that holds a new patient for approval answers with `awaitingApproval`; one that does not adds the patient and answers with its `id`.
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