v51

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-01703301564.3 KB
Users

Register a new user

Creates a new user account. Requires a valid registration JWT (set by registerJWT middleware). Validates email uniqueness, password strength, and required fields. Marks any pending invitation as accepted after successful creation.

post/users/register

Request body

namestring required

User's first name

surnamestring required

User's last name

emailstring email required
passwordstring password required

Must be 8+ chars with uppercase, lowercase, and digit

roleIdinteger required

1=Admin, 2=Reviewer, 3=Editor, 4=Auditor

organizationIdinteger required

Organization to assign the user to

Example request

{
  "name": "John",
  "surname": "Doe",
  "email": "john@example.com",
  "password": "SecurePassword123!",
  "roleId": 3,
  "organizationId": 1
}

Response

User created successfully

messagestring

Example response

{
  "message": "Created",
  "data": {
    "id": 1,
    "name": "John",
    "surname": "Doe",
    "email": "john@example.com",
    "role_id": 1,
    "organization_id": 1
  }
}