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

# Hae profiili

> Hae potilasprofiili ID:llä

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

**id** `string` *required*

Haettavan profiilin yksilöllinen tunniste (UUID).

## Vastaus

Onnistuessaan API palauttaa tilan `200 OK` ja profiilin.

**id** `string` *required*

Profiilin yksilöllinen tunniste (UUID).

**handle** `string`

Profiilin nimimerkki tai käyttäjätunnus. Voi olla `null`.

**first\_name** `string`

Etunimi. Voi olla `null`.

**last\_name** `string`

Sukunimi. Voi olla `null`.

**email** `string`

Sähköpostiosoite. Voi olla `null`.

**phone** `string`

Puhelinnumero E.164-muodossa. Voi olla `null`.

**sex** `integer`

Biologinen sukupuoli ISO/IEC 5218 -standardin mukaan (`0` = tuntematon, `1` = mies, `2` = nainen). Voi olla `null`.

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

Syntymäaika `YYYY-MM-DD`-muodossa. Voi olla `null`.

**height** `number`

Pituus senttimetreinä. Voi olla `null`.

**weight** `number`

Paino kilogrammoina. Voi olla `null`.

**language** `string`

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

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

Vastaanottaako profiili tapahtumapohjaisia (ohjelmallisia) sähköposteja. `null`, jos arvoa ei ole koskaan asetettu.

**created\_at** `string`

ISO 8601 -aikaleima profiilin luontihetkestä.

**updated\_at** `string`

ISO 8601 -aikaleima viimeisimmästä päivityksestä. Voi olla `null`.

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

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