Skip to main content
A profile is a record representing a patient or user in the Aniva system. Every appointment, lab order, and result is associated with a profile.

Profile groups

When you create a profile, you assign it to a profile group using the profile_group parameter. A profile group organizes profiles under your partner account, scoping them to a specific program or integration. The profile_group field accepts either the group’s immutable UUID or its human-readable slug. The UUID is the durable reference — it never changes and survives slug renames. The slug is intended for readable URLs and partner integrations. A profile_group value (UUID or slug) is required at creation. The legacy profile_group_slug field remains accepted as a deprecated alias.

Fields

string
required
UUID auto-generated by Aniva. Use this to reference the profile in other API calls.
string
An optional username or handle for the profile. May be null.
string
Patient’s first name. Latin characters only, 1–100 characters. Required at creation.
string
Patient’s last name. Latin characters only, 1–100 characters. Required at creation — labs reject orders for a patient without a surname. May be null on profiles created before it became required.
string
Patient’s email address. If you do not provide one at creation, Aniva auto-generates a placeholder email.
string
Phone number in E.164 format (e.g., +14155552671). May be null.
integer
Biological sex per ISO/IEC 5218: 1 = male, 2 = female. Required at creation, unless your profile group lets the patient enter it (see below). The laboratory needs it for the reference ranges, so a create or update with 0 (unknown) returns 400. Profiles created before 30 September 2026 can still return 0.
string
Date of birth in YYYY-MM-DD format. Required at creation, unless your profile group lets the patient enter it (see below). Must be in the past, not before 1900, and imply an age between 16 and 100; implausible values are rejected with 400. The birthdate is sent to the laboratory on the order and cannot be amended once the order is placed.
number
Height in centimeters. May be null.
number
Weight in kilograms. May be null.
string
Preferred language for patient-facing communications: en, bg, ca, cs, da, de, el, es, et, fi, fr, ga, hr, hu, is, it, lb, lt, lv, mt, nl, no, pl, pt, ro, ru, sk, sl, sr, sv, tr or uk. Defaults to en.
boolean
Whether the profile receives transactional emails, such as appointment confirmations and result-ready notices. Distinct from marketing opt-in. Null when never set.
string
required
ISO 8601 timestamp of when the profile was created.
string
ISO 8601 timestamp of the most recent update. A new profile has the time of its creation. May be null.
The first_name, last_name and profile_group fields are required when you create a profile. The sex and date_of_birth fields are also required, unless your profile group lets the patient enter them. All other fields are optional. The legacy profile_group_slug field is still accepted as a deprecated alias for profile_group.

Let the patient enter birthdate and sex

We can turn on one setting for your profile group. Then you can create a profile without date_of_birth and sex. Ask us to turn it on. Without it, a create that omits either field returns 400. The patient enters both on the kit activation page (anivahealth.com/activate), with the kit code. The page asks for the birthdate twice, because the laboratory cannot amend it later. After that, the kit opens only with that birthdate. Until the patient enters both, we hold the laboratory order. Use this setting only for home kits.

Lifecycle

Profiles follow a simple lifecycle:
  1. Create — register the profile with required demographic fields and a profile_group (UUID or slug).
  2. Update (optional) — add or change fields such as phone, height, or weight.
  3. Associate — link the profile to appointments using its id as the profile_id.
A profile.* webhook tells you when a profile appears, changes or is deleted.

Example profile