> ## 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.

# Gauti profilį

> Gauti paciento profilį pagal ID

Gauk vieno paciento profilį pagal jo UUID. Naudok šį galinį tašką demografiniams duomenims peržiūrėti arba patikrinti, ar profilis egzistuoja prieš planuojant vizitą.

Reikalinga `profiles_view` arba `impersonate` prieigos sritis.

## Užklausa

### Kelio parametrai

**id** `string` *required*

Unikalus gaunamo profilio identifikatorius (UUID).

## Atsakymas

Sėkmės atveju API grąžina `200 OK` su profiliu.

**id** `string` *required*

Unikalus profilio identifikatorius (UUID).

**handle** `string`

Profilio slapyvardis arba naudotojo vardas. Gali būti `null`.

**first\_name** `string`

Vardas. Gali būti `null`.

**last\_name** `string`

Pavardė. Gali būti `null`.

**email** `string`

El. pašto adresas. Gali būti `null`.

**phone** `string`

Telefono numeris E.164 formatu. Gali būti `null`.

**sex** `integer`

Biologinė lytis pagal ISO/IEC 5218 (`0` = nežinoma, `1` = vyras, `2` = moteris). Gali būti `null`.

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

Gimimo data `YYYY-MM-DD` formatu. Gali būti `null`.

**height** `number`

Ūgis centimetrais. Gali būti `null`.

**weight** `number`

Svoris kilogramais. Gali būti `null`.

**language** `string`

Pageidaujama kalba: `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` arba `uk`.

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

Ar šis profilis gauna operacinius (automatinius) el. laiškus. `null`, jei niekada nenustatyta.

**created\_at** `string`

Profilio sukūrimo laiko žyma ISO 8601 formatu.

**updated\_at** `string`

Paskutinio atnaujinimo ISO 8601 laiko žyma. Gali būti `null`.

## Klaidų atsakymai

| Būsena | Aprašymas |
| - | - |
| `400` | Netinkamas ID formatas – pateikta reikšmė nėra tinkamas UUID. |
| `403` | Draudžiama – tavo API raktas neturi prieigos prie šios operacijos arba profilis yra už tavo prieigos konteksto ribų. |
| `404` | Profilis nerastas. |
| `500` | Vidinė serverio klaida. |

```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.