Skip to main content
GET
/
api
/
public
/
v1
/
leaves
/
{id}
Get Leave Request
curl --request GET \
  --url https://api.example.com/api/public/v1/leaves/{id}
{
  "data": {
    "id": "lv_123...",
    "startDate": "2026-12-20T00:00:00.000Z",
    "endDate": "2026-12-26T23:59:59.999Z",
    "days": 5,
    "reason": "Family vacation",
    "status": "APPROVED",
    "leaveType": {
      "id": "lt_abc...",
      "name": "Annual Leave",
      "category": "ANNUAL"
    },
    "user": {
      "id": "usr_999...",
      "firstName": "John",
      "lastName": "Smith"
    },
    "approvals": [
      {
        "status": "APPROVED",
        "notes": "Enjoy your trip!",
        "approver": {
          "id": "usr_777...",
          "firstName": "Jane",
          "lastName": "Manager"
        }
      }
    ]
  }
}
This includes detailed approval history and who approved or rejected the request.

Path Parameters

id
string
required
The unique identifier of the leave request.

Response

{
  "data": {
    "id": "lv_123...",
    "startDate": "2026-12-20T00:00:00.000Z",
    "endDate": "2026-12-26T23:59:59.999Z",
    "days": 5,
    "reason": "Family vacation",
    "status": "APPROVED",
    "leaveType": {
      "id": "lt_abc...",
      "name": "Annual Leave",
      "category": "ANNUAL"
    },
    "user": {
      "id": "usr_999...",
      "firstName": "John",
      "lastName": "Smith"
    },
    "approvals": [
      {
        "status": "APPROVED",
        "notes": "Enjoy your trip!",
        "approver": {
          "id": "usr_777...",
          "firstName": "Jane",
          "lastName": "Manager"
        }
      }
    ]
  }
}