Fields
UUID auto-generated by Aniva. Use this to add panels, confirm the draw, and retrieve results.
The UUID of the test location where the draw will take place. Home kits are not appointments — see
Home Kit Orders.
Scheduled blood draw datetime in ISO 8601 format. Always returned as a UTC instant with a
Z
suffix (e.g. 2026-04-15T08:30:00Z). On create / update the value must include a timezone
designator (either Z or an explicit offset like +02:00) — naive datetimes are rejected. Must
be in the future, and at Aniva-operated locations at least 12 hours out (minimum
notice).Current lifecycle status. One of
pending, confirmed, blood_drawn, or cancelled. See
Lifecycle below. Lab-result completion granularity (in_progress vs completed) is
derived from Get Results; finer-grained shipment progression (in
transit, delivered, etc.) is derived by following each entry in the inline shipments array to
Get Shipment.Free-text reason captured when the appointment was cancelled (e.g. no-show, late cancellation,
‘Failed. Repeat required’).
null unless status is cancelled.Addresses that each get one email once every lab result is final, lowercased. Empty when off. See
Results-ready emails.
How the blood is drawn:
capillary (fingertip or upper arm, into microtainers) or venous (from the vein,
into tubes). It is the method the appointment sets, else the default_draw_method of its
location. After the blood draw, it is the method that was used.ISO 8601 timestamp of the most recent update. A new appointment has the time of its creation. May
be null.
Lab codes (tube barcodes) recorded at Confirm Blood Draw,
in scan order. Empty until the draw is confirmed. A venous draw has one code printed on every
tube; a capillary draw has one code per microtainer. Results and documents reference these via
lab_code.Panels attached to this appointment, as
{ panel_id, added_at } entries. See
Adding panels.À-la-carte biomarkers attached to this appointment, as
{ biomarker_id, added_at } entries. See
Individual biomarkers.Shipments linked to this appointment, as
{ id, added_at } entries, oldest link first. See
Linking shipments.The full profile object for the patient, embedded in every appointment response. The fields below
are a subset. Get Appointment lists all of them.
Lifecycle
Appointments expose four lifecycle states:The appointment status surface is intentionally coarse — finer-grained progression is exposed
via dedicated endpoints:
- Lab result completion →
Get Results — top-level
statusfield isin_progressorcompleted. - Shipment progression (in transit, delivered, etc.) → follow each entry in the inline
shipmentsarray on the appointment to Get Shipment — each shipment carries its ownstatusand astatus_updatesevent log.
appointment.* webhook, for example
appointment.confirmed. A new time or location sends appointment.rescheduled.Listing appointments
Retrieve all appointments accessible to your API key:?profile_id={uuid} to filter by a specific profile, ?location_id={uuid} to filter by a test location, or ?date=YYYY-MM-DD to get one calendar day. The filters combine. With no profile_id and no date, a default time window (past 2 months to future 1 month) is applied.
Updating an appointment
Before the blood draw is confirmed, you can reschedule or change the test location:scheduled_at, location_id, draw_method and results_ready_emails to update. Only include the fields you want to change.
A new scheduled_at detaches every shipment that is linked to the appointment.
Draw method
Each appointment has adraw_method: capillary (fingertip or upper arm, into microtainers) or
venous (from the vein, into tubes). It applies to the blood draw only. Urine, swab and other
non-blood samples are collected the same way with either method.
By default it is the default_draw_method of the location. Set draw_method on create or update to
use another method, or set it to null to go back to the location default. The location must list
the method in its draw_methods, and the booked tests must be possible with it, else the request
returns 400. You cannot change it after the blood draw. After the draw, draw_method is the
method that was used.
One appointment per profile, location and time
A profile holds at most one non-cancelled appointment per(location_id, scheduled_at) pair — one
person cannot be drawn twice at one place at one moment, independent of how many parallel bookings the
location accepts.
Both Create Appointment and
Update Appointment enforce this, returning 409 with an
appointment_id pointing at the appointment that already exists. Treat that response as “already
booked” rather than an error to retry: fetch, reschedule, or cancel the appointment it names.
The practical effect is that repeated creates are safe. A create you resend after a network timeout,
or one a user triggers twice, resolves to a single appointment instead of two — which also means you
never need to reconcile duplicate bookings for the same patient after the fact.
Updates are only allowed before the blood draw — i.e. while the appointment is in
pending or
confirmed status. Once the appointment moves to blood_drawn or has been cancelled, it cannot
be modified. The one exception is results_ready_emails: you can still change it alone after the
blood draw.Cancelling an appointment
Cancel an appointment that is no longer needed:cancelled. The cancelled appointment is returned in the response.
The cancellation removes the panels and individual biomarkers from the appointment. It also detaches every linked shipment. The response shows panels, individual_biomarkers and shipments as empty arrays.
Optionally send a cancellation_reason (up to 500 characters) in the body to record why. It is
stored on the appointment and returned as cancellation_reason on later reads.
Cancellation is only allowed before the blood draw — i.e. while the appointment is in
pending or
confirmed status. Appointments that have already moved to blood_drawn cannot be cancelled.Adding panels
Before confirming the blood draw, add the blood test panels you want to run by calling:panel_ids field. Panel IDs are provided by Aniva for your partner account.
Panels must be added before the blood draw — i.e. while the appointment is in
pending or
confirmed status. You cannot add or change panels once the appointment has moved to
blood_drawn.Removing panels
If you need to remove panels before the blood draw, call:panel_ids field. Removal is idempotent: a panel that is not attached is ignored.
Like adding panels, removal is only allowed before the blood draw — i.e. while the appointment is
in
pending or confirmed status. Panels cannot be removed once the appointment has moved to
blood_drawn.Individual biomarkers
You can attach individual biomarkers to an appointment as à la carte tests, outside any pre-built panel. This is useful when a practitioner wants a tailored selection rather than a pre-defined bundle. The attached biomarkers surface on the appointment response as aindividual_biomarkers array (siblings of panels). Routing decisions are made downstream by the order-logistics pipeline based on each biomarker’s per-lab mappings.
Add biomarkers (idempotent — already-attached biomarkers are kept):
biomarker_ids array and validate the resulting set against each lab’s closure rules — an order that can’t be cleanly placed (e.g. a CRP/HDL ratio without CRP and HDL) returns 400 with the biomarkers you’d need to add, and persists nothing. Use List Biomarkers to discover biomarker IDs.
You can remove individual biomarkers only before the blood draw. After the blood draw of a venous
appointment, an add places an add-on order on the tubes that were already drawn. See Add-on
orders after the blood draw.
Previewing container requirements
After adding panels or individual biomarkers, preview the physical specimen-collection containers that will be needed for the sample collection:containers array includes the type, name, cap color, volume, manufacturer article number, and count for each required container. This helps practitioners prepare the correct materials before the blood draw. The response also carries a pricing object — the appointment’s whole-cart bill (the positions that fired, the attached panels, and one row per delivered biomarker, priced at your card with retail beside it; see Pricing), populated when the appointment has attached tests and your key has the prices_view scope, otherwise null. routing is intentionally never exposed and is always null.
The preview reflects the currently attached panels and biomarkers. If you add or remove panels
after previewing, call the preview endpoint again to get updated container requirements.
Confirming the blood draw
After the blood is drawn, submit the lab codes (tube barcodes) to trigger the lab order pipeline:lab_code when one code is printed on every tube (venous draw), or lab_codes with one entry
per code — each with the panel_ids it covers — when every panel is drawn into its own tubes with
its own code (capillary draw). Each panel is then its own laboratory requisition under its code. The
codes are returned as lab_codes on the appointment.
At a capillary draw, the draw is packed into microtainers. Panels go first, in booking order. Individual
biomarkers then fill the free space of the panel microtainers. When they need more space, they open
new microtainers. We spread them evenly. Each microtainer holds at most 150 µl of individual
biomarkers. The calls that change panels or biomarkers answer 400 when the resulting set breaks
this rule.
This moves the appointment status to blood_drawn and initiates lab processing. This action is irreversible.
Shipment pickup
To track post-blood-draw progression, follow each entry in the appointment’s inlineshipments
array to Get Shipment — each shipment carries its own status
and a status_updates history.
Linking shipments
An appointment can be linked to one or more shipments (and vice versa — the relation is many-to-many). The current link set surfaces inline on both sides:- on the appointment, as a
shipmentsarray of{ id, added_at }entries; - on the shipment, as an
appointmentsarray of{ id, added_at }entries.
id cross-references the canonical detail endpoint
(Get Shipment /
Get Appointment) for the full payload.
Shipments are linked at creation time via the appointment_id field on
Create Shipment. After creation, manage links from the shipment
with Attach Appointments to Shipment and
Detach Appointments from Shipment; each returns
the post-mutation appointment list for that shipment. To read an appointment’s parcels in full,
use List Shipments with ?appointment_id=.
The mutation rule is: links can be created or removed when EITHER
- the appointment is past blood-draw (
blood_drawn), or - the shipment was created less than 24 hours ago.
Retrieving lab results
Once the lab has processed the blood samples, retrieve clinical and genetic results:planned) alongside received results, so you can
track what is still pending. The top-level status field is in_progress until every submission
closes, then completed (or fault when none of them reported) — use this to derive whether the
appointment’s lab work is done. An appointment.results.completed webhook
tells you when that happens, so you do not need to poll. The
submissions array breaks this down per laboratory requisition, each with its lab_code. Every
received result and document carries the lab_code it was filed under. Lab report PDFs are
referenced in the documents array — use GET /api/v1/documents/{id} to download them.