List employees
List employees, with their department and contract type.
GET https://cotlet.dev/api/v1/shiftbase/employees
read
Returns the employee id, name, department and contract type. Which employees appear depends on the departments your role can open.
Parameters
| Name | Type | Description |
|---|---|---|
| department_id string | string | Only employees of this department. |
| query string | string | Part of a name. |
Request
curl https://cotlet.dev/api/v1/shiftbase/employees \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("shiftbase", "list_employees") const result = await cotlet.call('shiftbase', 'list_employees'); cotlet call shiftbase list_employees Example response
{
"employees": [
{
"id": "501",
"name": "Lena Ortiz",
"department": "Harbor Cafe",
"contract_type": "Part-time"
},
{
"id": "502",
"name": "Sam Okafor",
"department": "Harbor Cafe",
"contract_type": "Full-time"
}
]
}