Login | Sign Up
  • FA
  • EN

API Docs

POST /api/v1/users

Create a new user in the system.


Permissions

PermissionDescription
users.createCreate users

Request Body Parameters

NameTypeRequiredDescription
first_namestringNoFirst name (max 255)
last_namestringNoLast name (max 255)
emailstringNoEmail (max 255, unique)
phonestringYesPhone number (unique, E.164 format)
usernamestringYesUsername (max 255, unique)
heightintegerNoUser's height in CM
birth_datedateNoUser's birth date
passwordstringYesPassword (will be hashed)

Response

200 OK

Returns the created user resource.

{
  "data": { /* user resource */ }
}

See User Resource.


Error Responses

StatusDescriptionReference
409Email or phone already in use
422Validation errorValidation error
401UnauthorizedAuthentication error
403ForbiddenPermission error
footer wave
logo

Dambel, the smart world of fitness and nutrition

LinkedinInstagramXYoutubeTelegramGitHub