cURL
curl --request GET \ --url https://api.hyra.io/staff/timeoff/{workspaceId} \ --header 'Authorization: Bearer <token>'
{ "totals": { "pending": 123, "out": 123 }, "staff_out": [ { "id": "<string>", "username": "<string>", "out_until": "2023-11-07T05:31:56Z" } ], "upcoming": [ { "id": "<string>", "username": "<string>", "out_from": "2023-11-07T05:31:56Z" } ] }
Retrieve timeoff information for a workspace
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Default Response
Show child attributes