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

Authorizations

Authorization
string
header
required

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

Path Parameters

workspaceId
string
required

Response

200 - application/json
Default Response
totals
object
required
staff_out
object[]
required
upcoming
object[]
required