List my leave

gethttps://api.expiryedge.com/v1/getMyAvailability
any role60/min
Request
curl 'https://api.expiryedge.com/v1/getMyAvailability' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY"
Response
{
  "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"
    }
  ]
}

Your leave records, newest start date first. Unbounded.

Returns

200
Leave records.
  • availabilityarray of objectsrequired

Errors

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).