GET
/
staff
/
timeoff
/
{workspaceId}
/
requests
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"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required

Query Parameters

page
number

Response

200 - application/json
Default Response
_id
string
required
end
string
required
start
string
required
type
string
required
notes
string
required
user
string
required
createdAt
string
required
status
enum<string>
required
Available options:
pending,
approved,
denied,
cancelled