Profile groups
When you create a profile, you assign it to a profile group using theprofile_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
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.
Patient’s email address. If you do not provide one at creation, Aniva auto-generates a placeholder
email.
Phone number in E.164 format (e.g.,
+14155552671). May
be null.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.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.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.Whether the profile receives transactional emails, such as appointment confirmations and
result-ready notices. Distinct from marketing opt-in. Null when never set.
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 withoutdate_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:- Create — register the profile with required demographic fields and a
profile_group(UUID or slug). - Update (optional) — add or change fields such as
phone,height, orweight. - Associate — link the profile to appointments using its
idas theprofile_id.
profile.* webhook tells you when a profile appears, changes or is deleted.