GET
/
v1
/
users
/
time-off
curl --request GET \
  --url https://platform.thena.ai/v1/users/time-off \
  --header 'x-api-key: <api-key>'
{
  "status": true,
  "message": "Success",
  "timestamp": "2024-01-01T00:00:00.000Z",
  "data": [
    {
      "id": "<string>",
      "startDate": "<string>",
      "endDate": "<string>",
      "description": "<string>",
      "type": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Enter your API key

Query Parameters

page
number
default:0

The page number to fetch time offs by

Required range: x >= 0
Example:

1

limit
number
default:10

The limit number of time offs to fetch

Required range: 1 <= x <= 100
Example:

10

Response

200
application/json

Operation successful

The response is of type object.