---
title: "Create a new user in Firebase and the database"
method: POST
path: "/Users"
tags: ["Users"]
---

# Create a new user in Firebase and the database

`POST /Users`

## Request body

- CreateUserRequest
  - `email` string, required
  - `password` string, required
  - `firstName` string, required
  - `lastName` string, required
  - `displayName` string, nullable
  - `roleId` string, nullable
  - `mentorId` string, nullable
  - `mentorshipDurationDays` union
    - integer
    - string, int32
  - `deaNumber` string, nullable
  - `licenseNumber` string, nullable
  - `licenseState` string, nullable
  - `usdaNumber` string, nullable
  - `deaLicenseExpiryDate` string, date-time, nullable
  - `stateLicenseExpiryDate` string, date-time, nullable
  - `usdaLicenseExpiryDate` string, date-time, nullable

## Response `200`

Created user profile

- UserResponseDto
  - `id` string
  - `email` string
  - `displayName` string, nullable
  - `firstName` string
  - `lastName` string
  - `type` integer
  - `createdAt` string, date-time
  - `updatedAt` string, date-time, nullable
  - `lastLoginAt` string, date-time, nullable
  - `isActive` boolean
  - `roleId` string, nullable
  - `roleName` string, nullable
  - `permissions` string[], nullable
  - `invitedAt` string, date-time, nullable
  - `passwordResetRequired` boolean
  - `mentorId` string, nullable
  - `mentorName` string, nullable
  - `mentorshipStartDate` string, date-time, nullable
  - `mentorshipDurationDays` union
    - integer
    - string, int32
  - `isMentorshipActive` boolean
  - `isPrimaryProvider` boolean
  - `displayOrder` union
    - integer
    - string, int32
  - `deaNumber` string, nullable
  - `licenseNumber` string, nullable
  - `licenseState` string, nullable
  - `usdaNumber` string, nullable
  - `deaLicenseExpiryDate` string, date-time, nullable
  - `stateLicenseExpiryDate` string, date-time, nullable
  - `usdaLicenseExpiryDate` string, date-time, nullable
  - `signatureImage` string, nullable — The provider's stored signature as a `data:image/...;base64,` data URL, applied to generated documents (e.g. the vaccine certificate). Null when none on file.
  - `defaultExamTemplateId` string, nullable — Provider's selected default exam template id, or null to use the built-in 7-system view.

---

[API](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1.md) · [All operations](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clinicos/pawthosx-business-api-v1/revisions/a905bde4e796/schema)
