curl --request POST \
--url https://app.hipp.health/api/v1/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"role": "TECHNICIAN"
}
'{
"message": "User created successfully",
"user": {
"publicId": "<string>",
"roles": [
{
"publicId": "<string>",
"name": "<string>",
"key": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validUntil": "2023-11-07T05:31:56Z"
}
],
"role": "ADMIN",
"specializations": [
{
"publicId": "<string>",
"name": "<string>"
}
],
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"phoneNumber": "<string>",
"npiNumber": "<string>",
"shouldSendSMS": true,
"createdAt": "2023-11-07T05:31:56Z",
"organization": {
"name": "<string>",
"publicId": "<string>"
}
}
}{
"message": "Validation Error",
"statusCode": 400,
"validationErrors": [
{
"code": "invalid_type",
"message": "Required",
"path": [
"email"
]
}
]
}{
"error": "API key required",
"statusCode": 401
}{
"error": "Access denied",
"statusCode": 403
}{
"error": "An unexpected error occurred",
"statusCode": 500
}Users
Create User
Create a new user in your organization via API. Requires API key authentication.
POST
/
v1
/
users
curl --request POST \
--url https://app.hipp.health/api/v1/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"role": "TECHNICIAN"
}
'{
"message": "User created successfully",
"user": {
"publicId": "<string>",
"roles": [
{
"publicId": "<string>",
"name": "<string>",
"key": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validUntil": "2023-11-07T05:31:56Z"
}
],
"role": "ADMIN",
"specializations": [
{
"publicId": "<string>",
"name": "<string>"
}
],
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"phoneNumber": "<string>",
"npiNumber": "<string>",
"shouldSendSMS": true,
"createdAt": "2023-11-07T05:31:56Z",
"organization": {
"name": "<string>",
"publicId": "<string>"
}
}
}{
"message": "Validation Error",
"statusCode": 400,
"validationErrors": [
{
"code": "invalid_type",
"message": "Required",
"path": [
"email"
]
}
]
}{
"error": "API key required",
"statusCode": 401
}{
"error": "Access denied",
"statusCode": 403
}{
"error": "An unexpected error occurred",
"statusCode": 500
}Create User
Create a new user in your organization via API.Headers
Authorization: Bearer <your-api-key>
Content-Type: application/json
Request Body
{
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"role": "TECHNICIAN",
"phoneNumber": "+1234567890",
"npiNumber": "1234567890",
"shouldSendSMS": false,
"recertificationDate": "2025-01-15T00:00:00Z",
"providerPayors": ["abc123"],
"specializations": ["spec_348HjqQrL-"],
"careTeamTechnicianIds": ["usr_tech_9aBc"],
"careTeamLeadIds": ["usr_bcba_3xYz"]
}
Field Descriptions
firstName(required): User’s first namelastName(required): User’s last nameemail(optional): User’s email address (must be unique)role(optional): Role to assign the new user. Defaults toTECHNICIAN.- Assignable roles:
ADMIN,BILLING_MANAGER,SCHEDULING_MANAGER,CLINICIAN,TECHNICIAN,PATIENT,CAREGIVER,CLINICAL_ADMIN,PAYROLL_ADMIN - The roles you may assign are further limited by your own role. If you request a role you are not permitted to create, the request is rejected with a
403.
- Assignable roles:
phoneNumber(optional): User’s phone numbernpiNumber(optional): National Provider Identifier numbershouldSendSMS(optional): Whether to send SMS notifications (defaults tofalse)recertificationDate(optional): Recertification date for the user (ISO 8601 format)providerPayors(optional): Assigns the provided payors to the User, if existsspecializations(optional): Public identifiers of specialization categories to assign to the provider. Only applied for clinical staff roles (CLINICIAN,TECHNICIAN,CLINICAL_ADMIN,CLINICAL_SUPERADMIN); ignored for other roles. Unknown or inactive categories are rejected with a400.careTeamTechnicianIds(optional): Public identifiers of technicians this user supervises. Only applied for clinician roles that own a care team (CLINICIAN,CLINICAL_ADMIN,CLINICAL_SUPERADMIN); ignored for other roles. Ids that are notTECHNICIANusers in your organization are silently skipped. Named to match the GET response field.careTeamLeadIds(optional): Public identifiers of the clinicians who supervise this user. Only applied when the role isTECHNICIAN; ignored for other roles. Ids that are not care-team clinicians in your organization are silently skipped. Named to match the GET response field.
Success Response (200)
{
"message": "User created successfully",
"user": {
"publicId": "usr_1234567890_abc123def",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"role": "TECHNICIAN",
"roles": [
{
"publicId": "role_technician_x2",
"name": "Technician",
"key": "technician",
"validFrom": "2025-01-15T10:30:00.000Z",
"validUntil": null
}
],
"phoneNumber": "+1234567890",
"npiNumber": "1234567890",
"shouldSendSMS": false,
"createdAt": "2025-01-15T10:30:00Z",
"specializations": [{ "publicId": "spec_348HjqQrL-", "name": "Autism" }],
"organization": {
"name": "Example Organization",
"publicId": "org_abc123def456"
}
}
}
specializations echoes the specialization categories assigned to the created
user (publicId + name). It is an empty array for non-provider roles, which
never carry specializations.The user object returned by this endpoint differs from the one returned by the
Get All Users and
Get User By Id endpoints, which return
demographic fields such as
sex, birthDate, and address information.Error Responses
400 - Validation Error
{
"message": "Validation Error",
"statusCode": 400,
"validationErrors": [
{
"code": "invalid_type",
"message": "Expected array, received number",
"path": ["specializations"]
}
]
}
specializations are rejected with a 400 as a plain error (a single unknown id in the array rejects the whole request):
{
"error": "One or more specialization categories were not found for this organization",
"statusCode": 400
}
401 - Unauthorized
{
"error": "API key required",
"statusCode": 401
}
401 - Invalid API Key
{
"error": "Invalid API key",
"statusCode": 401
}
403 - Forbidden
Returned when your role does not permit creating a user with the requested role.{
"error": "Insufficient role hierarchy permissions to create this user role",
"statusCode": 403
}
Examples
cURL Example
# Create a user
curl -X POST https://app.hipp.health/api/v1/users \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Jane",
"lastName": "Smith",
"email": "jane.smith@example.com",
"role": "CLINICIAN",
"phoneNumber": "+1234567890"
}'
JavaScript Example
const createUser = async (userData) => {
const response = await fetch("/api/v1/users", {
method: "POST",
headers: {
Authorization: "Bearer your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify(userData),
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error);
}
return response.json();
};
// Usage
try {
const result = await createUser({
firstName: "Jane",
lastName: "Smith",
email: "jane.smith@example.com",
role: "CLINICIAN",
});
console.log("User created:", result.user);
} catch (error) {
console.error("Error creating user:", error.message);
}
Authorizations
Body
application/json
Role to assign the new user (defaults to TECHNICIAN). The roles you may assign are further restricted by your own role; requesting a role you are not permitted to create returns 403.
Available options:
ADMIN, BILLING_MANAGER, SCHEDULING_MANAGER, CLINICIAN, TECHNICIAN, PATIENT, CAREGIVER, CLINICAL_ADMIN, PAYROLL_ADMIN Public identifiers of technicians this user supervises. Only applied for clinician roles that own a care team (CLINICIAN, CLINICAL_ADMIN, CLINICAL_SUPERADMIN); ignored for other roles. Ids that are not TECHNICIAN users in your organization are silently skipped. Named to match the GET response field.