Prerequisites
You need a partner API key with the following scopes:LOCATIONS_VIEW, CREATE_USER, TEST_SESSIONS_SCHEDULE.
If you don’t have an API key yet, contact Aniva to get one issued for your partner account.
Steps
List available locations
Retrieve the list of test locations to find a Example responseNote the
location_id for the appointment you will schedule.id of the location you want to use. You will need it in step 3.Create a profile
Create a patient profile by sending their demographic data. The Request body fields
Example response (201 Created)Note the
profile_group_slug ties the profile to your partner account.| Field | Type | Required | Description |
|---|---|---|---|
first_name | string | Yes | Patient’s first name |
last_name | string | No | Patient’s last name |
sex | integer | Yes | 1 = male, 2 = female (ISO/IEC 5218) |
date_of_birth | string | Yes | Date of birth in YYYY-MM-DD format |
profile_group_slug | string | Yes | Slug of your partner profile group |
email | string | No | Patient email. Auto-generated if omitted. |
language | string | No | en, de, or fi. Defaults to en. |
id from the response. You will use it as profile_id in the next step.Schedule an appointment
Create an appointment using the Example response (201 Created)Note the appointment
profile_id from step 2 and the location_id from step 1.id. You will use it to confirm the blood draw.Next steps
- Add panels to an appointment to specify which lab tests to run.
- Get lab results to retrieve clinical and genetic results after processing.
- Download documents to fetch lab report PDFs.
- Retrieve a profile to check or display patient data.
- Review the full API Reference for all available endpoints and parameters.