List employees
Team members of a location with their IDs.
GET https://cotlet.dev/api/v1/deputy/employees
read
Returns team members of one location, or of all your locations when location_id is omitted, with the employee_id other tools take. Terminated employees are left out.
Parameters
| Name | Type | Description |
|---|---|---|
| location_id integer | integer | Location ID from list_locations. Default: all your locations. |
| search string | string | Part of the name to match. |
Request
curl https://cotlet.dev/api/v1/deputy/employees \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("deputy", "list_employees") const result = await cotlet.call('deputy', 'list_employees'); cotlet call deputy list_employees Example response
{
"employees": [
{
"employee_id": 3,
"name": "Ana Lopez",
"location_id": 1
},
{
"employee_id": 4,
"name": "Tom Becker",
"location_id": 1
}
]
}