GET
/api/public/v1/time-off-requests/{requestId}

Get a time-off request

One request. Readable by the person who filed it, anyone above them in the reporting chain, and anyone holding `hr:admin` — the same set the list would have shown it to.

Required scope

The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Settings → Company → API, and to a teammate under Employee → Permissions.

hr:read

Path Parameters

NameTypeRequiredDescription
requestIdstringRequiredRequest ID.
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/time-off-requests/{requestId}" \
  -H "Authorization: Bearer your_access_token"
200Example response
json
{
  "message": "Time-off request retrieved successfully!",
  "content": {
    "request": {
      "id": "tor_31aa",
      "employeeId": "emp_44f1",
      "type": "VACATION",
      "status": "PENDING",
      "startDate": "2026-09-14",
      "endDate": "2026-09-18",
      "startsAt": null,
      "endsAt": null,
      "timezone": null,
      "note": "Family trip.",
      "reviewedById": null,
      "reviewedAt": null,
      "reviewNote": null,
      "createdAt": "2026-08-20T09:00:00.000Z",
      "updatedAt": "2026-08-20T09:00:00.000Z"
    }
  }
}

In the console

The same thing done by hand, for anyone comparing the API against the screen they already use.

Employees → Time off
/employee/timeoff