Skip to main content
GET
/
api
/
usuarios
curl -X GET https://api.iclcotizaciones.com/api/usuarios \
  -H "Cookie: session=your_session_token"
[
  {
    "id": 1,
    "full_name": "Juan Pérez",
    "email": "[email protected]",
    "role": "DIRECTOR",
    "is_active": true,
    "dni": "12345678"
  },
  {
    "id": 2,
    "full_name": "María González",
    "email": "[email protected]",
    "role": "COMERCIAL",
    "is_active": true,
    "dni": "87654321"
  }
]
Retrieves a list of all users in the system. This endpoint requires admin permissions.
Admin Only: Only users with admin roles (DIRECTOR, GERENTE) can list users.

Response

Returns an array of user objects. Passwords are never included in responses.
id
integer
Unique identifier for the user
full_name
string
User’s full name
email
string
User’s email address
role
string
User role: DIRECTOR, GERENTE, COMERCIAL, CSV, OPERACIONES, or ADMINISTRACION
is_active
boolean
Whether the user account is active
dni
string
User’s national ID number (optional)
curl -X GET https://api.iclcotizaciones.com/api/usuarios \
  -H "Cookie: session=your_session_token"
[
  {
    "id": 1,
    "full_name": "Juan Pérez",
    "email": "[email protected]",
    "role": "DIRECTOR",
    "is_active": true,
    "dni": "12345678"
  },
  {
    "id": 2,
    "full_name": "María González",
    "email": "[email protected]",
    "role": "COMERCIAL",
    "is_active": true,
    "dni": "87654321"
  }
]

Build docs developers (and LLMs) love