Profiller
Profili getir
Hasta profilini ID ile getir
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"
}
Tek bir hasta profilini UUID’siyle al. Demografik verileri sorgulamak veya randevu planlamadan önce bir profilin var olduğunu doğrulamak için bu uç noktayı kullan.
profiles_view veya impersonate kapsamı gerekir.
İstek
Yol parametreleri
Yanıt
İşlem başarılı olursa API, profille birlikte200 OK döndürür.
ISO/IEC 5218’e göre biyolojik cinsiyet (
0 = bilinmiyor, 1 = erkek, 2 = kadın). null olabilir.Tercih edilen dil:
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 veya uk.Hata yanıtları
| Durum | Açıklama |
|---|---|
400 | Geçersiz ID biçimi — verilen değer geçerli bir UUID değil. |
403 | Erişim reddedildi — API anahtarının bu işleme erişimi yok veya profil erişim bağlamının dışında. |
404 | Profil bulunamadı. |
500 | Dahili sunucu hatası. |
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"
}