Skip to content

Affinity documentation

Find guides for practices, platforms, and compounding pharmacies. Use the API reference for endpoint details and examples.

Get started

Start in Test mode. Move to Live mode only after Affinity approves your integration.

  1. Build a headless integrationRegister clinicians, create orders, and sign from your backend.
  2. Add authenticationCreate an API key for your backend.
  3. Use Test modeMake a request with synthetic data.
  4. Handle eventsVerify webhooks and process each event once.

Build with the headless API

Keep the workflow in your product

Register clinicians and prepare, sign, and submit orders through the API. Your product authenticates the clinician and collects signing intent.

  • Use one order per patient.
  • Keep API keys out of browser code.

Type to search…

↑↓ navigate↵ selectEsc close