LaundryAPI
  1. Users
LaundryAPI
  • Authentication
    • Signup
      POST
    • Resend Verification Code
      POST
    • Verify phone number
      POST
    • Login
      POST
    • Refresh Token
      GET
    • Forgot Password
      POST
    • Reset Password
      PATCH
    • Update Password
      PATCH
    • Logout
      POST
  • Users
    • Get Me
      GET
    • Update Me
      PATCH
    • Delete Me
      DELETE
    • Get All Users
      GET
    • Update User
      PATCH
    • Delete User
      DELETE
    • Create Delivery
      POST
    • Create Admin
      POST
  • Items
    • Get all items
      GET
    • Get Single item
      GET
    • Create item
      POST
    • Update item
      PATCH
    • Delete item
      DELETE
  • Orders
    • Get all orders
      GET
    • Single Order
      GET
    • Create Order
      POST
    • Delete order
      DELETE
    • Update Order
      PATCH
  • Branches
    • All Branches
    • Single Branch
    • branch's orders
    • Nearest Branches
    • Create Branch
    • update branch
    • Delete branch
  • Notifications
    • All Notifications
    • Create notification
    • Delete Notification
  • Banners
    • All Banners
    • Create Banner
    • Delete Banners
  • WhatsApp
    • initialize whatsapp Session
  1. Users

Get All Users

GET
http://82.180.154.188:4352/users/DELIVERY
Last modified:2025-04-10 08:50:22
🔒 Admin Only | Retrieves a list of all users.
This endpoint allows admins to fetch all registered users in the system in a specific role ADMIN, USER, or DELIVERY.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://82.180.154.188:4352/users/DELIVERY' \
--header 'Authorization: Bearer '
Response Response Example
{"status":"success","data":{"users":[{"_id":"67f77f8d8cb790ed566c31cd","name":"Delivery name","email":"delivery@gemail.com","phoneNumber":"01025723911","role":"DELIVERY","emailStatus":"awaitingVerification","accountStatus":"ACTIVE","__v":0},{"_id":"67f785c6fb48b612d3d88cb8","name":"Delivery name","email":"delivery1@gemail.com","phoneNumber":"01025723911","role":"DELIVERY","emailStatus":"awaitingVerification","accountStatus":"ACTIVE","__v":0}]}}

Request

Header Params
Authorization
string 
required
Example:
Bearer {{JWT}}

Responses

🟢200Success
application/json
Body
object {0}
Previous
Delete Me
Next
Update User
Built with