cURL
curl --request GET \ --url https://api.hyra.io/staff/timeoff/{workspaceId}/requests \ --header 'Authorization: Bearer <token>'
[ { "_id": "<string>", "end": "2023-11-07T05:31:56Z", "start": "2023-11-07T05:31:56Z", "type": "<string>", "notes": "<string>", "user": "<string>", "createdAt": "2023-11-07T05:31:56Z", "status": "pending" } ]
Retrieve timeoff requests for a workspace
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Default Response
pending
approved
denied
cancelled