Get All Users
GET
http://82.180.154.188:4352/users/DELIVERY
Last modified:2025-04-10 08:50:22
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}}