KalHR logo

API reference

Departments

List your organisation's departments and read one department.

Both endpoints need Employee Management: View. A department belongs to one company.

List departments

GET/v1/department/listKey needs Employee Management: View

Returns your organisation's departments, a page at a time.

Query parameters

ParameterTypeDefaultDescription
PageNumberinteger1The page to return
PageSizeinteger25Departments per page
SearchTermstringPart of the department's name
Companiesuuid, repeatedOnly these companies: Companies=…&Companies=…
OrderByinteger10 oldest first, 1 newest first
GET v1/department/list
curl "https://api.kalhr.com/v1/department/list?PageNumber=1&PageSize=25" \
  -H "Authorization: Bearer $KALHR_API_KEY"

Response

{
  "isSuccessful": true,
  "code": "00",
  "message": "Success",
  "data": {
    "data": [
      {
        "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
        "name": "Finance",
        "created": "2025-03-14T09:21:07.512",
        "status": "Active",
        "leads": [{ "id": "7e21a9c0-…", "name": "Tunde" }],
        "unitsCount": 2,
        "membersCount": 14
      }
    ],
    "pageNumber": 1,
    "pageSize": 25,
    "totalRecords": 9,
    "totalPages": 1
  }
}
FieldTypeDescription
iduuidThe department's id
namestringName
createddatetimeWhen it was added (UTC)
statusstringActive or InActive
leadsarrayDepartment heads: id, and name (their first name only; get the department for full names)
unitsCountintegerUnits in the department
membersCountintegerEmployees in the department

Get a department

GET/v1/department/{id}Key needs Employee Management: View
GET v1/department/2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f
curl "https://api.kalhr.com/v1/department/2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f" \
  -H "Authorization: Bearer $KALHR_API_KEY"

Response

{
  "isSuccessful": true,
  "code": "00",
  "message": "Success",
  "data": {
    "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
    "name": "Finance",
    "description": "Payroll, accounts and audit",
    "status": "Active",
    "created": "2025-03-14T09:21:07.512",
    "companyId": "1f2e3d4c-5b6a-4987-8a6b-5c4d3e2f1a0b",
    "unitsCount": 2,
    "membersCount": 14,
    "leaders": [{ "id": "7e21a9c0-…", "name": "Tunde Bello" }]
  }
}

Besides the list's fields:

FieldTypeDescription
descriptionstringWhat the department does
companyIduuidThe company it belongs to
leadersarrayDepartment heads: id and full name

An id that isn't one of your organisation's departments answers isSuccessful: false.

Last updated October 19, 2026

Missing an endpoint or an event?

Tell us what you're building. The API grows from what integrators ask for.

See KalHR in action - 30 min demo