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

Parameters: list_resources
NameTypeDescription
search string string Part of a name to match.
archived boolean boolean True to list archived resources instead of active ones.

Request

cURL
curl https://cotlet.dev/api/v1/resource-guru/resources \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("resource-guru", "list_resources")
Node.js
const result = await cotlet.call('resource-guru', 'list_resources');
CLI
cotlet call resource-guru list_resources

Example response

JSON

{
  "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"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.