List saved queries

Lists the saved queries in HR Admin > Queries.

GET https://cotlet.dev/api/v1/peoplehr/queries

read

Returns the name, category and description of each saved query you can open. It needs an HR Admin account. Queries are built in PeopleHR; this tool does not create or edit them.

Parameters

No parameters.

Request

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

Example response

JSON

{
  "queries": [
    {
      "name": "Probation ending soon",
      "category": "Employment",
      "description": "Probation end date in the next 28 days"
    },
    {
      "name": "Sickness this quarter",
      "category": "Absence",
      "description": "Sick days by employee"
    }
  ]
}

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.