This repository does not publish a specification or a package. The API serves its contract at api.affinityrx.com/v1/openapi.json. The current Affinity-Version is 2026-11-01. Send that value in the Affinity-Version header of every request. Production and staging (api-staging.affinityrx.com/v1/openapi.json) both serve it.
The API documentation describes authentication, Test and Live mode, and every operation.
Fern generates each SDK from this contract. Install the TypeScript SDK from npm; install the others from GitHub at the tag in their README.
| Language | Repository |
|---|---|
| TypeScript | affinity-health/affinity-typescript (@affinity-health/sdk on npm) |
| Python | affinity-health/affinity-python |
| Go | affinity-health/affinity-go |
| Java | affinity-health/affinity-java |
| C# | affinity-health/affinity-csharp |
To generate a client in another language, use the live document above.