The Users API provides administrative control over user accounts. Every endpoint requires a validDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/JorLOrT/rappi2/llms.txt
Use this file to discover all available pages before exploring further.
Bearer token. Read operations require the usuarios:read permission; write operations require usuarios:write; and deletion requires usuarios:delete.
GET /api/usuarios/
List all users with optional filtering and pagination. Authentication:Bearer token required.Permission required:
usuarios:read
Query parameters
Number of records to skip. Use with
limit for pagination.Maximum number of records to return. Cannot exceed 200.
Filter by account status. Omit to return all users regardless of status.
Response — 200 OK
Returns an array ofUsuarioResponse objects.
Auto-incremented user ID.
Unique username.
Email address.
ID of the assigned role.
ID of the linked
Cliente record, or null.Whether the account is active.
ISO 8601 timestamp of account creation.
Embedded role with its permissions.
POST /api/usuarios/
Create a new user account directly (admin operation). Unlike/api/auth/register, this endpoint does not auto-create a Cliente record and requires explicit rol_id.
Authentication: Bearer token required.Permission required:
usuarios:write
Request body
Unique username. Maximum 50 characters.
Unique email address.
Plain-text password. Hashed with bcrypt before storage.
ID of the role to assign. Must reference an existing role.
ID of an existing
Cliente record to link to this user. Must be unique across users.Response — 201 Created
Returns the createdUsuarioResponse. See GET /api/usuarios/ for the full field list.
GET /api/usuarios/
Retrieve a single user by ID. Authentication:Bearer token required.Permission required:
usuarios:read
Path parameters
ID of the user to retrieve.
Response — 200 OK
Returns aUsuarioResponse object. See GET /api/usuarios/ for the full field list.
PATCH /api/usuarios/
Partially update a user account. Only fields included in the request body are modified. Changingrol_id invalidates the role permission cache for both old and new roles.
Authentication: Bearer token required.Permission required:
usuarios:write
Path parameters
ID of the user to update.
Request body
All fields are optional. Include only the fields you want to change.New email address. Must be unique.
ID of the new role to assign.
Set to
false to deactivate without deleting, or true to re-activate.New plain-text password. Hashed before storage.
Response — 200 OK
Returns the updatedUsuarioResponse. See GET /api/usuarios/ for the full field list.
DELETE /api/usuarios/
Soft-delete a user by settingactivo = false. The record is retained in the database; the user cannot log in while inactive.
Authentication: Bearer token required.Permission required:
usuarios:delete
Path parameters
ID of the user to deactivate.