List pending leave requests

The requests waiting in your inbox, with the overlaps Timetastic flags.

GET https://cotlet.dev/api/v1/timetastic/pending-requests

read

Returns each pending request with the person, department, leave type, dates, the days asked for, the reason and the approver. A request that overlaps another person's time off lists that person under clashes. It reads the inbox and changes nothing.

Parameters

Parameters: list_pending_requests
NameTypeDescription
approver string string Only requests that go to this approver, by full name. Defaults to every request your account can see under View all.

Request

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

Example response

JSON

{
  "total": 2,
  "requests": [
    {
      "request_id": "5128840",
      "employee": "Ana Torres",
      "department": "Support",
      "leave_type": "Holiday",
      "from": "2026-11-23",
      "to": "2026-11-27",
      "days": 5,
      "reason": "Family visit",
      "requested_on": "2026-10-19",
      "approver": "Priya Nair",
      "clashes": [
        {
          "employee": "Ben Okafor",
          "from": "2026-11-25",
          "to": "2026-11-27"
        }
      ]
    },
    {
      "request_id": "5128861",
      "employee": "Tomas Lind",
      "department": "Support",
      "leave_type": "Holiday",
      "from": "2026-12-07",
      "to": "2026-12-11",
      "days": 5,
      "reason": "",
      "requested_on": "2026-10-20",
      "approver": "Priya Nair",
      "clashes": []
    }
  ]
}

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.