Carepatron Public API

The Carepatron Public API gives you programmatic access to core Carepatron functionality - the same healthcare practice-management and EHR platform your team uses in the app. Use it to integrate Carepatron with your own systems and to automate workflows.

This page is the starting point.
For the full, interactive reference - every endpoint, parameter, and schema - see the API reference.
The raw OpenAPI specification is published at /openapi.yaml and /openapi.json for tooling and code generation.

Base URL

All requests go to:

https://api.carepatron.com

Authentication

The API authenticates each request with an API key sent in a request header. Create a key at developer.carepatron.com, then send it with every call.

See the API reference for the exact header name, the key format, and the scopes each endpoint requires. These are described authoritatively in the specification, so they never drift from what the API actually enforces.

Treat API keys as secrets: never embed them in client-side code or commit them to source control. They are bearer tokens - whoever has the key can use it to do anything the API allows for the scopes the key was granted. To confine an App's keys to your own network, list your source addresses in the App's IP allowlist in the Developer Console: a request with any of its keys from anywhere else is refused with 403 ip_not_allowed. Callers that reach the API over IPv6 need their IPv6 range listed.

Signing in to the Developer Console

Login to the Developer Console occurs via a UI hosted by the same secure store (AWS Cognito) that holds user login details for the Carepatron App. This login UI affords limited design changes - while we have plans to update and improve this we are currently restricted in how we design the login form and so it does not look as polished as we would like. It is however legitimate, so long as it is hosted at auth.carepatron.com.

Versioning

The API is versioned by date. Each request carries the API version it was written against in the cp-api-version header, so your integration keeps working as the API evolves. API versions lists every supported version and what changed at each, and links each version's whole contract.

Conventions

Next steps