Create user

POST/api/v1/users

Create a new user account in the system.

Operation ID: create_user_api_v1_users_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

emailstring · emailrequired

User email address (unique identifier).

first_namestring

User's first name.

last_namestring

User's last name.

photo_urlstring

URL to user's profile photo.

onboardedboolean

Whether user has completed onboarding.

propsobject

Additional user properties/settings.

Responses

201Successful Response

successboolean
messagestring
codestring
dataUserResponse

400Bad Request - Invalid input

403Forbidden - Insufficient permissions

409Conflict - Resource already exists

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject