List team leave
get
https://api.expiryedge.com/v1/getTeamAvailabilityany role60/min
Anfrage
curl 'https://api.expiryedge.com/v1/getTeamAvailability?team_id=tm_3Fh8qLx' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY"Antwort
{
"availability": [
{
"id": "av_6Jc3nTy",
"user_id": "u_4Np8cZe",
"organization_id": "org_northwind",
"start_date": "2026-10-15",
"end_date": "2026-10-22",
"reason": "Annual leave",
"created_by": "u_4Np8cZe",
"created_at": "2026-09-27T14:05:00.000Z",
"updated_at": "2026-09-27T14:05:00.000Z"
}
]
}Leave for members of team_id, or (without it) of every team you belong to; only your own if you are in no team.
Includes user_name and user_photo. Unbounded.
team_idstringRestrict to members of this team.
200
Leave records.
availabilityarray of objectserforderlich
401 | Missing, expired or invalid bearer token. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
500 | Server error, including a missing or invalid token (legacy {message} body). |
