Appearance
Users
User management is an Admin-only feature. WedoCOD supports multiple user roles, each with a dedicated CRUD interface.
User Roles
| Role | Description |
|---|---|
| Admin | Platform administrators with full access |
| Manager Leader | Manages groups of managers |
| Manager | Manages agents and team operations |
| Seller | Product sellers with their own accounts |
| Agent | Call center agents who process leads |
| Sourcing Agent | Handles product sourcing requests |
| Stock Manager | Manages warehouse inventory |
| Call Center Manager | Manages call center operations |
| Delivery | Delivery personnel |
| Follow-Up Agent | Handles post-sale customer follow-up |
Common Endpoints
Every user role follows the same endpoint pattern. Replace {role} with the role slug from the table below:
| Role | URL Slug |
|---|---|
| Admin | admins |
| Manager Leader | manager-leaders |
| Manager | managers |
| Seller | sellers |
| Agent | agents |
| Sourcing Agent | sourcing-agents |
| Stock Manager | stock-managers |
| Call Center Manager | call-center-managers |
| Delivery | deliveries |
| Follow-Up Agent | follow-up-agents |
List Users
GET/users/{role}🔒 Session — can viewAny
Paginated list of users for a specific role.
Create User
POST/users/{role}/store🔒 Session — can create
Create a new user.
Common fields (all roles):
| Field | Type | Required | Description |
|---|---|---|---|
full_name | string | Yes | Full name (1–100 chars) |
phone | string | Yes | Phone number (1–100 chars) |
email | string | Yes | Email (unique, valid format) |
password | string | Yes | Password (must be confirmed) |
status | string | Yes | User status (enum value) |
Additional fields by role:
| Role | Extra Fields |
|---|---|
| Agent | whatsapp_phone, company, salary (numeric), products_ids_to_confirm (array), agent_working_hours (array with startTime/endTime), agent_status_handlings (array) |
| Seller | company (optional), whatsapp_phone (optional) |
| Manager | whatsapp_phone, company |
| Manager Leader | (no extra fields) |
| Call Center Manager | whatsapp_phone, company |
| Stock Manager | whatsapp_phone, company, warehouses_ids_to_manage (array) |
| Delivery | whatsapp_phone, company |
| Follow-Up Agent | whatsapp_phone, company |
| Sourcing Agent | whatsapp_phone, company |
Show User
GET/users/{role}/{item}/show🔒 Session — can view
View user details.
Update User
PATCH/users/{role}/{item}/update🔒 Session — can update
Update user details. Password is optional on update.
Activate / Deactivate User
POST/users/{role}/{item}/activate🔒 Session
Activate a user account.
POST/users/{role}/{item}/deactivate🔒 Session
Deactivate a user account.
INFO
Activate/deactivate endpoints are available for Admins, Manager Leaders, and Sellers.
Impersonation
POST/users/{item}/login-as🔒 Session — can loginAs
Log in as another user (impersonation). Admin only.
POST/users/login-back🔒 Session
Return to original admin session after impersonation.
Search Users
Search endpoints return [{id, text}] for autocomplete:
GET/search/users/admins🔒 Session
Search admin users.
GET/search/users/sellers🔒 Session
Search seller users.
GET/search/users/managers🔒 Session
Search manager users.
GET/search/users/agents🔒 Session
Search agent users.
GET/search/users/deliveries🔒 Session
Search delivery users.
GET/search/users/teams🔒 Session
Search teams.
GET/search/users/manager-leaders🔒 Session
Search manager leaders.
GET/search/users/call-center-managers🔒 Session
Search call center managers.
