Skip to main content
This guide walks you through the core workflow: finding a test location, creating a patient profile, scheduling an appointment, and confirming a blood draw.

Prerequisites

You need a partner API key issued by Aniva.
If you don’t have an API key yet, contact Aniva to get one issued for your partner account.

Steps

1

List available locations

Retrieve the list of test locations to find a location_id for the appointment you will schedule.
Example response
Note the id of the location you want to use. You will need it in step 3.
2

Create a profile

Create a patient profile by sending their demographic data. The profile_group ties the profile to your partner account — it accepts either the group’s immutable UUID or its human-readable slug.
Request body fieldsExample response (201 Created)
Note the id from the response. You will use it as profile_id in the next step.
3

Schedule an appointment

Create an appointment using the profile_id from step 2 and the location_id from step 1. Set scheduled_at to a slot start that Get availability returns for that location. The API rejects a time that is not on the slot grid.
Example response (201 Created)
Note the appointment id. You will use it to confirm the blood draw.
4

Confirm the blood draw

After the blood draw is complete, submit the lab code (tube barcode) to confirm the draw and trigger the lab order pipeline. A draw whose tubes carry several codes sends lab_codes instead — see Confirm Blood Draw.
Example response (200 OK)
Once confirmed, the lab order pipeline is triggered. You can retrieve the appointment to verify its status has changed to "blood_drawn".

Next steps