ADMIN role. Include a valid Bearer token for an admin account in the Authorization header for every request on this page.
Roles
Every user in the system has exactly one role that determines what they can access.ADMIN
Full system access. Can manage users, view all tickets, and perform every ticket operation.
MESA
Help desk agents. Can view all tickets and perform most ticket operations including assignment and transfer.
AREA
Area specialists. Can view and update tickets routed to their assigned area.
USUARIO
End users. Can only create tickets and look up their own ticket status via public endpoints.
Create a user
UsePOST /api/auth/users to create a new user account.
Required fields
| Field | Type | Constraints | Description |
|---|---|---|---|
email | string | Valid email address | Login credential and contact address. |
nombre | string | Minimum 2 characters | Full name of the user. |
password | string | Minimum 6 characters | Initial password. Should be changed on first login. |
rol | string | ADMIN, MESA, AREA, or USUARIO | Role assignment. |
| Field | Type | Constraints | Description |
|---|---|---|---|
area | string | — | Area name, required for AREA role users. |
telefono | string | Max 30 characters | Contact phone number. |
- Create ADMIN
- Create MESA agent
- Create AREA specialist
- Create end user
curl
List all users
UseGET /api/auth/users to retrieve every user account in the system.
curl
Update a user
UsePATCH /api/auth/users/{user_id} to update one or more fields on an existing user. All fields are optional — only include the fields you want to change.
Updatable fields
| Field | Type | Constraints | Description |
|---|---|---|---|
email | string | Valid email address | New login email. |
nombre | string | — | Updated display name. |
rol | string | ADMIN, MESA, AREA, or USUARIO | Change the user’s role. |
area | string | — | New area assignment (relevant for AREA role). |
telefono | string | Max 30 characters | Updated phone number. |
password | string | Minimum 6 characters | Set a new password. |
is_active | boolean | — | false to deactivate the account without deleting it. |
- Change role and area
- Reset password
- Deactivate account
curl
Deactivating a user with
"is_active": false prevents login without removing the account or its history. This is the recommended approach when an employee leaves, so their ticket history is preserved.Delete a user
UseDELETE /api/auth/users/{user_id} to permanently remove a user account.
curl
Best practices
Role assignment- Assign
ADMINonly to users who actively manage the system. Avoid using admin accounts for day-to-day ticket handling. - Use
MESAfor front-line help desk agents who need to triage, assign, and transfer tickets across all areas. - Use
AREAfor technical specialists. Always set theirareafield to match the area name used in ticket routing. - Create
USUARIOaccounts for internal staff who submit tickets through the API rather than the public form.
- Use consistent, uppercase area names across users and tickets:
MESA,INFRAESTRUCTURA,SISTEMAS,FACTURACION,RRHH. - An
AREAuser can only see tickets whereareaAsignadamatches theirareavalue exactly. Inconsistent casing or spelling will break routing.
- Set a temporary password when creating accounts and require users to change it on first login.
- Use the
PATCHendpoint to reset passwords when users are locked out. - Passwords must be at least 6 characters. Enforce stronger passwords at the application layer if your security policy requires it.