Log In

List Users' Leave and Unavailability

get/public/v1/user-availability

Returns each user with leave or unavailability between start_date and end_date, one page of users at a time, oldest occurrence first within each user. Recurring unavailability is expanded into the occurrences that fall in the range, and dates removed from a series are left out, so each entry in availability is one block of time the user is away. availability_id is the same for every occurrence of one series.

A user whose recurring unavailability spans the range without an occurrence inside it is returned with an empty availability list.

  • Authorizationstringrequired

    Bearer authentication header of the form Bearer <token>, where <token> is your API key. See How to set up an API key.

  • start_datestring<date>required

    The first day to return, as YYYY-MM-DD, read as a whole day in the provider's timezone.

    Example:2026-01-05
  • end_datestring<date>required

    The last day to return, inclusive, as YYYY-MM-DD, read as a whole day in the provider's timezone. At most 92 days after start_date.

    Example:2026-01-18
  • type[]string[]

    Only return these types. Repeat to combine values. One of: leave, unavailable. Defaults to both.

    Example:leave
  • status[]string[]

    Only return these statuses. Repeat to combine values. One of: approved, pending, declined, cancelled. Defaults to approved, pending and declined.

    Example:approved
  • filter[user]string

    Only return these users, by id. Comma-separate to combine values.

    Example:u1s2e3r4-a5b6-47c8-9d0e-1f2a3b4c5d6e
  • filter[team]string

    Only return members of these teams, by id. Comma-separate to combine values.

    Example:t1e2a3m4-a5b6-47c8-9d0e-1f2a3b4c5d6e
  • filter[region]string

    Only return users in these regions, by id. Comma-separate to combine values.

    Example:r1e2g3i4-a5b6-47c8-9d0e-1f2a3b4c5d6e
  • sortstring

    Sort the users. Prefix with '-' for descending. One of: first_name, last_name. Defaults to first_name, then last_name.

    Example:last_name
  • page[size]integer

    Number of results per page. Minimum 1, maximum 100.

    Default:25
  • page[number]integer

    The page number to retrieve. Use the last_page value from the meta response to determine the total number of pages available.

    Default:1

Response

200application/json

Paginated set of UserAvailabilityDatesResource

  • dataobject[]required
    ▶Show 3 child attributes
    • idstringrequired
      Example:u1s2e3r4-a5b6-47c8-9d0e-1f2a3b4c5d6e
    • namestringrequired
      Example:Jane Smith
    • availabilityobject[]required
      ▶Show 7 child attributes
      • availability_idstringrequired
        Example:a1b2c3d4-e5f6-47a8-9b0c-1d2e3f4a5b6c
      • typeenum<string>required
        Available options:leaveunavailable
      • statusenum<string>required
        Available options:approvedcancelleddeclinedpending
      • startstringrequired
        Example:2026-01-07T00:00:00+11:00
      • endstringrequired
        Example:2026-01-07T23:59:00+11:00
      • all_daybooleanrequired
        Example:true
      • reasonstring | nullrequired
        Example:Family holiday
  • metaobjectrequired
    ▶Show 5 child attributes
    • current_pageintegerrequired≥ 1
    • last_pageintegerrequired≥ 1
    • per_pageintegerrequired≥ 0

      Number of items shown per page.

    • totalintegerrequired≥ 0

      Total number of items being paginated.

    • allowed_sortsstring[]required

      The list of allowed sorts for this endpoint.

  • 401Unauthenticated
  • 403Authorization error
  • 422Validation error