CREATE_USER
Get your profile group slug
Every profile must be assigned to a profile group that belongs to your partner account. Your profile group slug is a unique identifier you include in every create-profile request.If you don’t know your profile group slug, contact Aniva to retrieve it. You cannot create profiles without a valid slug.
Create the profile
Send a A successful request returns Save the
POST request to /api/v1/profiles with the patient’s demographic data.The
first_name field accepts only latin characters (A–Z, a–z). Names with non-latin scripts must be transliterated before submission.If you omit
email, Aniva auto-generates a placeholder email address for the profile. You can update it later with a PATCH request.201 Created with the new profile object:id — you’ll need it to schedule appointments and update the profile.Update the profile (optional)
Use A successful request returns
PATCH /api/v1/profiles/{id} to update any profile fields after creation. All fields are optional — only include the fields you want to change.The following example adds a phone number and height:200 OK with the full updated profile object.Error handling
| Status | Cause | Resolution |
|---|---|---|
400 Bad Request | A required field is missing, a value is out of range, or date_of_birth is not in the past. | Check the error response body for the specific validation message and correct the request. |
403 Forbidden | Your API key is missing the CREATE_USER scope, or you do not have access to the specified profile group. | Contact Aniva to confirm your key has the required scope and profile group access. |
404 Not Found | The profile_group_slug does not match any profile group on your account. | Verify the slug is correct. Contact Aniva if you are unsure of your slug. |