Profiilit
Hae profiili
Hae potilasprofiili ID:llä
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"
}
Hae yksittäinen potilasprofiili sen UUID-tunnisteella. Käytä tätä päätepistettä demografisten tietojen hakemiseen tai profiilin olemassaolon tarkistamiseen ennen ajanvarauksen tekemistä.
Vaatii
profiles_view- tai impersonate-käyttöoikeuden.
Pyyntö
Polkuparametrit
Vastaus
Onnistuessaan API palauttaa tilan200 OK ja profiilin.
Biologinen sukupuoli ISO/IEC 5218 -standardin mukaan (
0 = tuntematon, 1 = mies, 2 = nainen). Voi olla null.Ensisijainen kieli:
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 tai uk.Vastaanottaako profiili tapahtumapohjaisia (ohjelmallisia) sähköposteja.
null, jos arvoa ei ole koskaan asetettu.Virhevastaukset
| Tila | Kuvaus |
|---|---|
400 | Virheellinen ID-muoto — annettu arvo ei ole kelvollinen UUID. |
403 | Kielletty — API-avaimellasi ei ole oikeutta tähän toimintoon tai profiili on käyttöoikeusalueesi ulkopuolella. |
404 | Profiilia ei löytynyt. |
500 | Palvelimen sisäinen virhe. |
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"
}