The versioned REST contract for the Heyrafiki API.
The contract is available for Sandbox integration. Version 1 accepts additive changes under the published compatibility policy.
The specification covers Practitioner discovery, Bookings, Sessions, Benefits, Claims, remittance and Webhooks. Examples use synthetic data.
- Read the API documentation.
- Download
openapi.yaml. - Review the insurance financial controls.
- Inspect the machine-readable Assurance Graph.
- Run the Open Mental Health Insurance Assurance Benchmark.
- Generate a client with any OpenAPI 3.1-compatible tool.
- Clone the contract or use
openapi.yamldirectly with an OpenAPI 3.1-compatible tool.
The API base URL is https://api.heyrafiki.space/v1.
Requires Node.js 22 or newer.
npm ci
npm testThe checks validate the OpenAPI document, operation identifiers, authentication, error coverage, public-information boundary, synthetic insurance amount invariants, bitemporal Claim valuation and the control mapping for every operation.
Additive fields and operations do not change the major version. Breaking changes use a new major API version and a documented migration period. See the versioning policy.
Report vulnerabilities through the Heyrafiki security policy. Never include personal, health or payment data in an issue or example.
Licensed under the Apache License 2.0.