Create a new patient profile and assign it to a profile group
curl --request POST \
--url https://anivahealth.com/api/v1/profiles \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"first_name": "Maria",
"last_name": "Schmidt",
"sex": 2,
"date_of_birth": "1985-03-22",
"profile_group_slug": "acme-clinic-berlin",
"email": "maria.schmidt@example.com",
"phone": "+4930123456789",
"height": 168,
"weight": 65,
"language": "de"
}'
{
"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"
}
CREATE_USER scope. Requests made with a key that lacks this scope return 403 Forbidden.1 for male and 2 for female.YYYY-MM-DD format. Must be a date in the past.+14155552671).en, de, fi. Defaults to en.201 Created with the newly created profile.
null.null.null.null.null.1 = male, 2 = female). May be null.YYYY-MM-DD format. May be null.null.null.en, de, or fi).| Status | Description |
|---|---|
400 | Validation error — one or more fields failed validation. |
403 | Forbidden — missing CREATE_USER scope or profile group is outside your access context. |
404 | Profile group not found. |
500 | Internal server error. |
curl --request POST \
--url https://anivahealth.com/api/v1/profiles \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"first_name": "Maria",
"last_name": "Schmidt",
"sex": 2,
"date_of_birth": "1985-03-22",
"profile_group_slug": "acme-clinic-berlin",
"email": "maria.schmidt@example.com",
"phone": "+4930123456789",
"height": 168,
"weight": 65,
"language": "de"
}'
{
"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"
}
curl --request POST \
--url https://anivahealth.com/api/v1/profiles \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"first_name": "Maria",
"last_name": "Schmidt",
"sex": 2,
"date_of_birth": "1985-03-22",
"profile_group_slug": "acme-clinic-berlin",
"email": "maria.schmidt@example.com",
"phone": "+4930123456789",
"height": 168,
"weight": 65,
"language": "de"
}'
{
"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"
}