x-api-key request header.
Contact Aniva to obtain your API key. Keys are issued per partner and scoped to specific operations.
Sending authenticated requests
Include thex-api-key header in every request you make to the API.
Scopes
Each API key is scoped to a set of permitted operations. If your key does not have the required scope for an endpoint, the API returns a403 Forbidden error.
| Scope | What it allows |
|---|---|
CREATE_USER | Create and update patient profiles |
PROFILES_VIEW | Retrieve patient profiles |
IMPERSONATE | Alternative scope to retrieve patient profiles |
TEST_SESSIONS_SCHEDULE | Create appointments, add panels, and confirm blood draws. Also grants LOCATIONS_VIEW. |
TEST_SESSIONS_VIEW | Retrieve appointment details |
TEST_SESSIONS_OPERATE | Confirm shipment pickup of blood samples |
TEST_SESSIONS_MANAGE | Full appointment management including shipment pickup |
LOCATIONS_VIEW | List available test locations |
RESULTS_VIEW | Retrieve lab results and download lab report documents |
SHIPMENTS_MANAGE | Create, list, retrieve, update, and cancel shipment orders |
Error responses
If your API key is missing or does not have the required scope, the API responds with403 Forbidden.
- Your request includes the
x-api-keyheader. - The API key value is correct and has not been rotated.
- Your key has the scope required for the endpoint you are calling.