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
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:
0 = unknown, 1 =
male, 2 = female. Required at creation.string
Date of birth in
YYYY-MM-DD format. Required at creation. 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. Accepted values:
en, de, fi.string
required
ISO 8601 timestamp of when the profile was created.
string
ISO 8601 timestamp of the most recent update. Null if the profile has never been updated.
The
first_name, last_name, sex, date_of_birth, and profile_group fields are required
when creating a profile. All other fields are optional. The legacy profile_group_slug field is
still accepted as a deprecated alias for profile_group.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.