Users authenticate with the Pagos Hotspot API and are assigned one of two roles:Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sistemashm24/pagos_hotspot_api/llms.txt
Use this file to discover all available pages before exploring further.
super_admin (platform operators with full access) or cliente_admin (company-scoped admins who manage their own company’s products, payments, and router settings). Only super_admin users can create, list, or toggle the active state of any user.
All endpoints in this section require Authorization: Bearer <session_token> for a user with the super_admin role.
POST /admin/usuarios
Creates a new user. The role determines whetherempresa_id is required or forbidden.
cURL — Create a cliente_admin
cURL — Create a super_admin
Request Body
User’s email address. Must be unique across the entire platform. Returns HTTP 400 if already registered.
Plain-text password. Hashed server-side using bcrypt before storage. Never stored or returned in plain text.
User’s full display name.
User role. Must be exactly
"super_admin" or "cliente_admin". Any other value returns HTTP 400.Company to associate the user with.
- Required for
cliente_admin. Must be an existing company ID. - Forbidden for
super_admin. Passnullor omit entirely.
Response
cliente_admin Created
super_admin Created
Error Responses
| Status | Detail |
|---|---|
400 | "Rol inválido. Debe ser 'super_admin' o 'cliente_admin'" |
400 | "cliente_admin requiere empresa_id" |
400 | "super_admin no debe tener empresa_id" |
400 | "El email ya está registrado" |
404 | "Empresa no encontrada" |
GET /admin/usuarios
Returns all users in the system. Supports optional filtering by role and/or company.cURL — All users
cURL — Filter by company
cURL — Filter by role
Query Parameters
Filter users by role. Accepted values:
"super_admin", "cliente_admin". Omit to return all roles.Filter users belonging to a specific company. Can be combined with
rol.Response
Returns an array ofUserResponse objects.
Auto-incremented user ID.
User’s email address.
User’s display name.
User role:
"super_admin" or "cliente_admin".Associated company ID. Always
null for super_admin users.Whether the user account is currently active. Inactive users cannot log in.
Example Response
GET /admin/usuarios/
Returns a single user by their numeric database ID.cURL
Path Parameters
Numeric user ID.
Response
Returns a singleUserResponse object. Returns HTTP 404 if the user does not exist.
Example Response
PUT /admin/usuarios//toggle-activo
Toggles the active/inactive state of a user. Deactivated users lose the ability to log in immediately — their existing sessions are not invalidated, but they cannot obtain new tokens.cURL
Path Parameters
Numeric ID of the user to activate or deactivate.
Response
User Deactivated
User Activated
Error Responses
| Status | Detail |
|---|---|
400 | "No puedes desactivar tu propio usuario" |
404 | "Usuario no encontrado" |
UserResponse Fields
All user-returning endpoints share the sameUserResponse schema:
Auto-incremented numeric user ID.
User’s email address. Unique across the platform.
User’s full display name.
One of
"super_admin" or "cliente_admin".Company association.
null for super_admin users, a valid company ID (e.g. EMP_3A9F1C0B2D) for cliente_admin users.true if the user can log in, false if deactivated.