Users
You can get more details about User data structure from here
Queries
Get logged in user's info
Fetches the currently logged in user's information.
Resource URL
GET /me
Example Request
curl "https://api.metroleads.com/me"
Example Response
{
"group_id": "8d11c579-bc45-4673-9f24-a3edb4520498",
"user_id": "982f5fd8-ba6a-4fc7-aa84-c8cd2e2eb9f8",
"name": "John Doe",
"caller_id_name": "John Doe",
"notify_reminders_by_sms": true,
"is_suspended": false,
"company_id": "8a7e944d-091e-4154-97e7-cae1916afda7",
"role_id": "superadmin",
"phone": "+15551234",
"tracking_number": "",
"last_login": "2017-02-12T21:39:23.381Z",
"forward_numbers": "",
"auto_assignable": true,
"email": "john.doe@initech.com"
}
List all users
List all users in the company
Resource URL
GET /companies/<company_uuid>/users
Example Request
curl "https://api.metroleads.com/companies/9eaba815-1f7f-433b-a7f5-affd3d9460e3/users"
Example Response
[
{
"user_id": "4e7cba10-ffdc-473c-9a26-d0f9fa9aaf41",
"name": "Jane Doe",
"caller_id_name": "Jane Doe",
"notify_reminders_by_sms": true,
"is_suspended": false,
"company_id": "9eaba815-1f7f-433b-a7f5-affd3d9460e3",
"role_id": "superadmin",
"phone": "+15559087",
"tracking_number": "",
"group_id": "c8779d7b-22bd-45c8-b23c-da813ad69a2a",
"auto_assignable": false,
"email": "jane.doe@initech.com"
},
{
"user_id": "454da06b-cc3e-e558-b3dd-2861bdc55e2b",
"name": "Josh Banner",
"caller_id_name": "Josh Banner",
"notify_reminders_by_sms": false,
"is_suspended": true,
"company_id": "9eaba815-1f7f-433b-a7f5-affd3d9460e3",
"role_id": "superadmin",
"phone": "+15559819",
"tracking_number": "",
"group_id": "c8779d7b-22bd-45c8-b23c-da813ad69a2a",
"auto_assignable": false,
"email": "josh.b@initech.com"
}
]