> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anivahealth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Získať profil

> Získať profil pacienta podľa ID

Načítaj jeden profil pacienta podľa jeho UUID. Použi tento endpoint na vyhľadanie demografických údajov alebo overenie existencie profilu pred naplánovaním termínu.

Vyžaduje scope `profiles_view` alebo `impersonate`.

## Požiadavka

### Parametre cesty

**id** `string` *required*

Jedinečný identifikátor (UUID) profilu, ktorý chceš načítať.

## Odpoveď

Pri úspechu API vráti `200 OK` s profilom.

**id** `string` *required*

Jedinečný identifikátor profilu (UUID).

**handle** `string`

Handle alebo používateľské meno profilu. Môže byť `null`.

**first\_name** `string`

Krstné meno. Môže byť `null`.

**last\_name** `string`

Priezvisko. Môže byť `null`.

**email** `string`

E-mailová adresa. Môže byť `null`.

**phone** `string`

Telefónne číslo vo formáte E.164. Môže byť `null`.

**sex** `integer`

Biologické pohlavie podľa ISO/IEC 5218 (`0` = neznáme, `1` = muž, `2` = žena). Môže byť `null`.

**date\_of\_birth** `string`

Dátum narodenia vo formáte `YYYY-MM-DD`. Môže byť `null`.

**height** `number`

Výška v centimetroch. Môže byť `null`.

**weight** `number`

Hmotnosť v kilogramoch. Môže byť `null`.

**language** `string`

Preferovaný jazyk: `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` alebo `uk`.

**transactional\_emails\_enabled** `boolean`

Či tento profil dostáva transakčné (automatické) e-maily. `null`, ak nebolo nikdy nastavené.

**created\_at** `string`

Časová pečiatka vytvorenia profilu vo formáte ISO 8601.

**updated\_at** `string`

Časová pečiatka ISO 8601 poslednej aktualizácie. Môže byť `null`.

## Chybové odpovede

| Stav | Popis |
| - | - |
| `400` | Neplatný formát ID — zadaná hodnota nie je platné UUID. |
| `403` | Prístup zamietnutý — tvoj API kľúč nemá prístup k tejto operácii alebo profil je mimo tvojho prístupového kontextu. |
| `404` | Profil sa nenašiel. |
| `500` | Interná chyba servera. |

```bash cURL theme={null}
curl --request GET \
  --url https://anivahealth.com/api/v1/profiles/a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d \
  --header 'x-api-key: YOUR_API_KEY'
```

```json 200 theme={null}
{
  "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"
}
```

```json 400 theme={null}
{
  "error": "id: Invalid profile ID format"
}
```

```json 404 theme={null}
{
  "error": "Profile not found"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.