Profiluri
Obține profilul
Preia un profil de pacient după ID
GET
/
api
/
v1
/
profiles
/
{id}
curl --request GET \
--url https://anivahealth.com/api/v1/profiles/a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d \
--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": "id: Invalid profile ID format"
}
{
"error": "Profile not found"
}
Obține un singur profil de pacient după UUID-ul său. Folosește acest endpoint pentru a consulta date demografice sau pentru a verifica dacă există un profil înainte de a face o programare.
Necesită scope-ul
profiles_view sau impersonate.
Cerere
Parametri de cale
Răspuns
În caz de succes, API-ul returnează200 OK împreună cu profilul.
Sex biologic conform ISO/IEC 5218 (
0 = necunoscut, 1 = masculin, 2 = feminin). Poate fi null.Limba preferată:
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 sau uk.Indică dacă acest profil primește e-mailuri tranzacționale (programatice).
null dacă nu a fost setat niciodată.Răspunsuri de eroare
| Status | Descriere |
|---|---|
400 | Format de ID nevalid — valoarea furnizată nu este un UUID valid. |
403 | Interzis — cheia ta API nu are acces la această operațiune sau profilul nu face parte din contextul tău de acces. |
404 | Profilul nu a fost găsit. |
500 | Eroare internă de server. |
curl --request GET \
--url https://anivahealth.com/api/v1/profiles/a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d \
--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": "id: Invalid profile ID format"
}
{
"error": "Profile not found"
}
⌘I
curl --request GET \
--url https://anivahealth.com/api/v1/profiles/a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d \
--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": "id: Invalid profile ID format"
}
{
"error": "Profile not found"
}