Skip to main content

Get Users

Retrieve a paginated list of users with filtering options.

Query Parameters

integer
required
Administrator ID making the request
integer
default:"1"
Page number
integer
default:"20"
Number of users per page (max 100)
Search query (searches name, email, phone)
string
Filter by user type: pasajero, conductor, admin, empresa
boolean
Filter by active status: 1 for active, 0 for inactive

Response

boolean
Request success status
array
Array of user objects
object
Pagination metadata

Request Example

Response Example

Success

Update User

Update user information. Requires admin privileges.

Request Body

integer
required
Administrator ID
integer
required
User ID to update
string
Updated first name
string
Updated last name
string
Updated phone number
string
Updated user type
integer
Active status: 1 for active, 0 for inactive
integer
Verified status: 1 for verified, 0 for unverified
integer
Company ID for drivers

Response

boolean
Update success status
string
Success or error message

Request Example

Response Example

Success

Delete User

Permanently delete a user account.

Request Body

integer
required
Administrator ID
integer
required
User ID to delete

Response

boolean
Deletion success status
string
Confirmation message

Request Example

cURL
User deletion is permanent and cannot be undone. Consider deactivating users instead of deleting them.

Suspend User

Temporarily suspend a user account.

Request Body

integer
required
User ID to suspend
string
required
Reason for suspension

Request Example

cURL

Activate User

Reactivate a suspended user account.

Request Body

integer
required
User ID to activate

Request Example

cURL

Error Responses

Bad Request
Invalid parameters or missing required fields
Forbidden
Insufficient admin privileges
Not Found
User not found
Internal Server Error
Server error during operation

See Also