GET
/
api
/
v3
/
leaveRequests
/
{id}
curl --request GET \
  --url https://{host}/api/v3/leaveRequests/{id} \
  --header 'Authorization: <authorization>'
{
  "data": {
    "id": 123,
    "leavePeriodId": 123,
    "leavePeriod": {
      "id": 123,
      "ownerId": 123,
      "isConfirmed": true,
      "confirmationDate": null,
      "attachmentId": null,
      "leaves": [
        {}
      ],
      "logs": [
        {
          "id": 123,
          "date": "2023-11-07T05:31:56Z",
          "comment": "<string>",
          "status": 0
        }
      ]
    },
    "status": 0,
    "creationDate": "2023-11-07T05:31:56Z",
    "nextApproverId": null,
    "cancellationUserId": null,
    "cancellationDate": null,
    "isActive": true,
    "approvals": [
      {
        "id": 123,
        "date": "2023-11-07T05:31:56Z",
        "approverId": 123,
        "substitutedApproverId": null,
        "approved": true,
        "comment": "<string>"
      }
    ],
    "cancellationRequests": [
      {
        "id": 123,
        "authorId": 123,
        "comment": "<string>",
        "rank": 0,
        "approved": true,
        "creationDate": "2023-11-07T05:31:56Z",
        "nextApproverId": null,
        "isActive": true
      }
    ]
  }
}

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

Path Parameters

id
string
required

ID of the leave-request.

Response

200
application/json
OK
data
object