Returns all roles currently registered in the system, up to a maximum of 200 records. This endpoint intentionally skips the roles-middleware permission check so that any authenticated user can fetch the role list — for example, to populate a dropdown in a user-creation form.Documentation 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.
Authentication
Requires a valid JWT in theAuthorization header. No specific role permission is needed.
Request
Method:GET
Path: /api/v1/roles
Headers
Bearer token obtained from the login endpoint. Format:
Bearer <token>Response
200 OK
Returns the full list of roles, ordered as stored in the database (up to 200 records).Always
true for successful responses.Human-readable status message. Value:
"Roles obtenidos".Array of role objects.
Example Response
Error Responses
| Status | Description |
|---|---|
401 Unauthorized | Missing or invalid JWT token. |
401 Unauthorized
Code Example
cURL
Socket.IO Events
This is a read-only endpoint. No socket events are emitted — neitheroperation:progress nor data:changed are sent for this operation.