List Users' Leave and Unavailability
/public/v1/user-availabilityReturns 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.
start_datestring<date>requiredThe first day to return, as YYYY-MM-DD, read as a whole day in the provider's timezone.
Example:2026-01-05end_datestring<date>requiredThe 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-18type[]string[]Only return these types. Repeat to combine values. One of: leave, unavailable. Defaults to both.
Example:leavestatus[]string[]Only return these statuses. Repeat to combine values. One of: approved, pending, declined, cancelled. Defaults to approved, pending and declined.
Example:approvedfilter[user]stringOnly return these users, by id. Comma-separate to combine values.
Example:u1s2e3r4-a5b6-47c8-9d0e-1f2a3b4c5d6efilter[team]stringOnly return members of these teams, by id. Comma-separate to combine values.
Example:t1e2a3m4-a5b6-47c8-9d0e-1f2a3b4c5d6efilter[region]stringOnly return users in these regions, by id. Comma-separate to combine values.
Example:r1e2g3i4-a5b6-47c8-9d0e-1f2a3b4c5d6esortstringSort the users. Prefix with '-' for descending. One of: first_name, last_name. Defaults to first_name, then last_name.
Example:last_namepage[size]integerNumber of results per page. Minimum 1, maximum 100.
Default:25page[number]integerThe page number to retrieve. Use the
last_pagevalue from themetaresponse to determine the total number of pages available.Default:1
Response
200application/jsonPaginated set of UserAvailabilityDatesResource
dataobject[]required▶Show 3 child attributesHide child attributes
idstringrequiredExample:u1s2e3r4-a5b6-47c8-9d0e-1f2a3b4c5d6enamestringrequiredExample:Jane Smithavailabilityobject[]required▶Show 7 child attributesHide child attributes
availability_idstringrequiredExample:a1b2c3d4-e5f6-47a8-9b0c-1d2e3f4a5b6ctypeenum<string>requiredAvailable options:leaveunavailablestatusenum<string>requiredAvailable options:approvedcancelleddeclinedpendingstartstringrequiredExample:2026-01-07T00:00:00+11:00endstringrequiredExample:2026-01-07T23:59:00+11:00all_daybooleanrequiredExample:truereasonstring | nullrequiredExample:Family holiday
metaobjectrequired▶Show 5 child attributesHide child attributes
current_pageintegerrequired≥ 1last_pageintegerrequired≥ 1per_pageintegerrequired≥ 0Number of items shown per page.
totalintegerrequired≥ 0Total number of items being paginated.
allowed_sortsstring[]requiredThe list of allowed sorts for this endpoint.
401Unauthenticated403Authorization error422Validation error