List resources
People, placeholders and other resources in the account.
GET https://cotlet.dev/api/v1/resource-guru/resources
read
Returns each resource with its ID, name, type, timezone and job title. The IDs feed every booking and time off call. The list shows active resources unless archived is true. Resource Guru returns up to 50 per call by default.
Parameters
| Name | Type | Description |
|---|---|---|
| search string | string | Part of a name to match. |
| archived boolean | boolean | True to list archived resources instead of active ones. |
Request
curl https://cotlet.dev/api/v1/resource-guru/resources \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("resource-guru", "list_resources") const result = await cotlet.call('resource-guru', 'list_resources'); cotlet call resource-guru list_resources Example response
{
"resources": [
{
"id": 18211,
"name": "Lena Ortiz",
"type": "Person",
"job_title": "Designer",
"timezone": "London"
},
{
"id": 18214,
"name": "Sam Okafor",
"type": "Person",
"job_title": "Developer",
"timezone": "London"
}
]
}