List colleagues
Search the Who is who list by name or team.
GET https://cotlet.dev/api/v1/officient/colleagues
read
Returns the people Who is who shows, with team, role and contact details. Without a filter it returns the whole company. Use person_id values from here in other calls.
Parameters
| Name | Type | Description |
|---|---|---|
| query string | string | Part of a name. |
| team string | string | Team name as shown in Who is who. |
Request
curl https://cotlet.dev/api/v1/officient/colleagues \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("officient", "list_colleagues") const result = await cotlet.call('officient', 'list_colleagues'); cotlet call officient list_colleagues Example response
{
"colleagues": [
{
"person_id": "10045868",
"name": "Lena Maes",
"team": "Design",
"role": "Product designer",
"email": "lena.maes@example.com",
"phone": "+32 470 00 00 01"
},
{
"person_id": "10045871",
"name": "Tom De Smet",
"team": "Design",
"role": "Illustrator",
"email": "tom.desmet@example.com",
"phone": "+32 470 00 00 02"
}
]
}