TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Nyverie/reservafacil/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/usuarios endpoint returns the complete list of registered users in the platform, along with each user’s role, account status, and a count of their total reservations. This endpoint is exclusively available to superadmins and is intended for user management dashboards and administrative tooling.
GET /api/usuarios
Returns allUsuario records ordered by registration date descending (most recently created first). Each record includes a computed _count.reservas field reflecting the total number of reservations associated with that user.
Requires SUPERADMIN role. Requests from users with ADMIN or USUARIO roles — or unauthenticated requests — are rejected immediately with 403.
Password hashes are never included in the response. The query uses an explicit
select block that omits the password field entirely.Response 200
Array of user objects ordered by
creadoEn descending.CUID identifier for the user record.
Full display name of the user.
Unique email address. Used for login and as a human-readable identifier.
Role assigned to the user. One of:
USUARIO, ADMIN, SUPERADMIN.Whether the account is currently active. Inactive accounts (
false) cannot log in.Timestamp of when the account was created. The list is sorted by this field, descending.
Total number of reservations created by this user across all statuses and dates.
Error responses
| Status | Body | Description |
|---|---|---|
403 | { "error": "Sin permisos" } | Caller is not authenticated or does not have SUPERADMIN role. |