TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/TheSerchCp/SEAM-API/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/v1/users endpoint returns a collection of all user records stored in the system. Each user object includes their role name and role description, sourced from a LEFT JOIN with the roles table. The password field is never included in results.
This endpoint requires a valid JWT token and that the caller’s role has the GET /api/v1/users permission registered in the database.
Endpoint
http://localhost:{PORT}/api/v1
Authentication: JWT Bearer token + role permission GET /api/v1/users
Example Request
Responses
200 OK
Returned when the request is authenticated, the role has the required permission, and the query executes successfully. Thedata array may be empty if no users exist.
Always
true for successful responses.Human-readable confirmation:
"Usuarios obtenidos exitosamente".Ordered array of user objects. Sorted by
idUser ascending.401 Unauthorized
Returned when theAuthorization header is missing, the token is malformed, or the token has expired.
403 Forbidden
Returned when the JWT is valid but the caller’s role does not haveGET /api/v1/users listed in the permissionXRole table.
Permission Setup
For a role to access this endpoint, a record must exist in thepermissions table with nameUri = "GET /api/v1/users" and that permission must be linked to the role via the permissionXRole pivot table.
The roles.middleware constructs the URI string automatically from req.method + req.baseUrl + req.route.path and performs a case-insensitive lookup:
nameUri value stored in the database matches this exact pattern (case-insensitive match is applied in the query).