Profiles
List Profiles
List or look up patient profiles by email
GET
/
api
/
v1
/
profiles
curl --request GET \
--url 'https://anivahealth.com/api/v1/profiles?email=maria.schmidt@example.com' \
--header 'x-api-key: YOUR_API_KEY'
curl --request GET \
--url 'https://anivahealth.com/api/v1/profiles?limit=50&offset=0' \
--header 'x-api-key: YOUR_API_KEY'
[
{
"id": "a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d",
"handle": null,
"first_name": "Maria",
"last_name": "Schmidt",
"email": "maria.schmidt@example.com",
"phone": "+4930123456789",
"sex": 2,
"date_of_birth": "1985-03-22",
"height": 168,
"weight": 65,
"language": "de",
"transactional_emails_enabled": true,
"created_at": "2026-04-01T09:14:32Z",
"updated_at": "2026-04-01T11:05:00Z"
}
]
[]
{
"error": "email: Invalid email format"
}
List patient profiles accessible to your API key, or look one up by exact email address.
When
email is provided, the endpoint performs a Redis-cached exact-match lookup against the
canonical sign-in email and returns 0 or 1 result; limit and offset are ignored in that
case. When omitted, the endpoint returns a paginated list of profiles scoped to your API
key’s access context.
Email matching is case-insensitive and exact — substring and prefix matches are not supported.
Only the canonical sign-in email is checked; alternate addresses such as work_email are not
considered.
Requires the profiles_view or impersonate scope.
Request
Query parameters
Filter by exact email address (case-insensitive). When set, returns 0 or 1 result and
limit/offset are ignored. The lookup is served by a Redis-cached reverse index, with an
indexed SQL fallback.Maximum number of profiles to return. Defaults to 100, maximum 500. Ignored when
email is set.Number of profiles to skip for pagination. Defaults to 0. Ignored when
email is set.Response
On success, the API returns200 OK with an array of profile objects. The shape of each
entry matches Get Profile.
Preferred language:
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.Behaviour notes
- An empty array is returned both when no profile matches the email and when a match exists outside your access context. This is intentional — it prevents the endpoint from leaking the existence of profiles you cannot read.
- Newly created profiles are immediately discoverable by
emailbecause the create flow warms the cache synchronously. - The unfiltered list is ordered by
created_atdescending (newest first) and paginated vialimitandoffset.
Repeated calls
Aniva stores the answer of this endpoint for 5 minutes for each API key. A repeated call inside this time gets the stored answer. The headersCache-Status and Age show that the answer is
stored and how old it is.
To learn about a change at once, subscribe to the webhook events profile.created, profile.updated and profile.deleted.
See Repeated reads.
Error responses
| Status | Description |
|---|---|
400 | Validation error — invalid email format, or limit/offset out of range. |
403 | Forbidden — your API key does not have the required scope (profiles_view/impersonate). |
500 | Internal server error. |
curl --request GET \
--url 'https://anivahealth.com/api/v1/profiles?email=maria.schmidt@example.com' \
--header 'x-api-key: YOUR_API_KEY'
curl --request GET \
--url 'https://anivahealth.com/api/v1/profiles?limit=50&offset=0' \
--header 'x-api-key: YOUR_API_KEY'
[
{
"id": "a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d",
"handle": null,
"first_name": "Maria",
"last_name": "Schmidt",
"email": "maria.schmidt@example.com",
"phone": "+4930123456789",
"sex": 2,
"date_of_birth": "1985-03-22",
"height": 168,
"weight": 65,
"language": "de",
"transactional_emails_enabled": true,
"created_at": "2026-04-01T09:14:32Z",
"updated_at": "2026-04-01T11:05:00Z"
}
]
[]
{
"error": "email: Invalid email format"
}
⌘I
curl --request GET \
--url 'https://anivahealth.com/api/v1/profiles?email=maria.schmidt@example.com' \
--header 'x-api-key: YOUR_API_KEY'
curl --request GET \
--url 'https://anivahealth.com/api/v1/profiles?limit=50&offset=0' \
--header 'x-api-key: YOUR_API_KEY'
[
{
"id": "a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d",
"handle": null,
"first_name": "Maria",
"last_name": "Schmidt",
"email": "maria.schmidt@example.com",
"phone": "+4930123456789",
"sex": 2,
"date_of_birth": "1985-03-22",
"height": 168,
"weight": 65,
"language": "de",
"transactional_emails_enabled": true,
"created_at": "2026-04-01T09:14:32Z",
"updated_at": "2026-04-01T11:05:00Z"
}
]
[]
{
"error": "email: Invalid email format"
}