List time off requests

Time off requests with member, policy, dates and status.

GET https://cotlet.dev/api/v1/hubstaff/organizations/{organization_id}/time-off-requests

read

Lists time off requests in an organization, filtered by when they start or by member. Owners and managers see all requests; other roles see only their own and those of teams they lead with time off approval. Use it before approving a timesheet, because pending time off in the same period matters.

Parameters

Parameters: list_time_off_requests
NameTypeDescription
organization_id integer required integer Organization ID from list_organizations.
user_ids integer[] integer[] Only requests from these members.
starts_after datetime datetime Only requests that start after this time.
starts_before datetime datetime Only requests that start before this time.
cursor string string Next page cursor from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/hubstaff/organizations/1/time-off-requests \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("hubstaff", "list_time_off_requests", {"organization_id":1})
Node.js
const result = await cotlet.call('hubstaff', 'list_time_off_requests', {"organization_id":1});
CLI
cotlet call hubstaff list_time_off_requests --data '{"organization_id":1}'

Example response

JSON

{
  "time_off_requests": [
    {
      "request_id": 77120,
      "user_id": 3012,
      "policy": "Vacation",
      "starts_at": "2026-10-19T00:00:00",
      "stops_at": "2026-10-21T23:59:59",
      "all_day": true,
      "status": "submitted"
    }
  ],
  "next_cursor": null
}

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.