---
updatedAt: 2025-05-21T20:29:30.000Z
agentTools:
  projectIndex: https://developers.keka.com/llms.txt
---

# Get all Employees

Gets all employees / the specified employees based on employee search parameters.

This is to fetch all employees

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Core Hr",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://{company}.{environment}.com/api/v1",
      "description": "Production server (uses live data)",
      "variables": {
        "environment": {
          "default": "keka",
          "enum": [
            "keka",
            "kekademo"
          ]
        }
      }
    }
  ],
  "paths": {
    "/hris/employees": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get all Employees",
        "description": "Gets all employees / the specified employees based on employee search parameters.",
        "parameters": [
          {
            "name": "employeeIds",
            "in": "query",
            "description": "Comma separated list of one or more Employee ids you'd like to filter on.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "employeeNumbers",
            "in": "query",
            "description": "Comma separated list of one or more Employee numbers you'd like to filter on.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "employmentStatus",
            "in": "query",
            "description": "Comma separated list of one or more Employment Status you'd like to filter on, allowed values are Working, Relieved.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "inProbation",
            "in": "query",
            "description": "Fetches employees who are in probation. The allowed value is true or false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "inNoticePeriod",
            "in": "query",
            "description": "Fetches employees who are in notice period. The allowed value is true or false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "lastModified",
            "in": "query",
            "description": "Date/time when this time off request was last modified, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "searchKey",
            "in": "query",
            "description": "The search key allowed value must have atleast 3 characters.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Represents how many results you'd like to retrieve per request (page). Default is 100. Max is 200",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeProfilePagedResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeProfilePagedResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountStatus": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "Address": {
        "type": "object",
        "properties": {
          "addressLine1": {
            "type": "string",
            "nullable": true
          },
          "addressLine2": {
            "type": "string",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "zip": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BloodGroup": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17
        ],
        "type": "integer",
        "format": "int32"
      },
      "ContingentType": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomField": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Education": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "degree": {
            "type": "string",
            "nullable": true
          },
          "branch": {
            "type": "string",
            "nullable": true
          },
          "university": {
            "type": "string",
            "nullable": true
          },
          "cgpa": {
            "type": "number",
            "format": "double"
          },
          "yearOfJoining": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "yearOfCompletion": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "customFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EmployeeLookup": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EmployeeProfile": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "employeeNumber": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "middleName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          },
          "image": {
            "$ref": "#/components/schemas/Image"
          },
          "jobTitle": {
            "$ref": "#/components/schemas/LookupInfo"
          },
          "secondaryJobTitle": {
            "type": "string",
            "nullable": true
          },
          "reportsTo": {
            "$ref": "#/components/schemas/EmployeeLookup"
          },
          "l2Manager": {
            "$ref": "#/components/schemas/EmployeeLookup"
          },
          "dottedLineManager": {
            "$ref": "#/components/schemas/EmployeeLookup"
          },
          "contingentType": {
            "$ref": "#/components/schemas/ContingentType"
          },
          "timeType": {
            "$ref": "#/components/schemas/TimeType"
          },
          "workerType": {
            "$ref": "#/components/schemas/WorkerType"
          },
          "isPrivate": {
            "type": "boolean"
          },
          "isProfileComplete": {
            "type": "boolean"
          },
          "maritalStatus": {
            "$ref": "#/components/schemas/MaritalStatus"
          },
          "marriageDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "gender": {
            "$ref": "#/components/schemas/Gender"
          },
          "joiningDate": {
            "type": "string",
            "format": "date-time"
          },
          "totalExperienceInDays": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "professionalSummary": {
            "type": "string",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "resignationSubmittedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "exitDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "employmentStatus": {
            "$ref": "#/components/schemas/EmploymentStatus"
          },
          "accountStatus": {
            "$ref": "#/components/schemas/AccountStatus"
          },
          "invitationStatus": {
            "$ref": "#/components/schemas/InvitationStatus"
          },
          "exitStatus": {
            "$ref": "#/components/schemas/ExitStatus"
          },
          "exitType": {
            "$ref": "#/components/schemas/ExitType"
          },
          "exitReason": {
            "type": "string",
            "nullable": true
          },
          "personalEmail": {
            "type": "string",
            "nullable": true
          },
          "workPhone": {
            "type": "string",
            "nullable": true
          },
          "homePhone": {
            "type": "string",
            "nullable": true
          },
          "mobilePhone": {
            "type": "string",
            "nullable": true
          },
          "bloodGroup": {
            "$ref": "#/components/schemas/BloodGroup"
          },
          "nationality": {
            "type": "string",
            "nullable": true
          },
          "attendanceNumber": {
            "type": "string",
            "nullable": true
          },
          "probationEndDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "currentAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "permanentAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "relations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Relation"
            },
            "nullable": true
          },
          "educationDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Education"
            },
            "nullable": true
          },
          "experienceDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Experience"
            },
            "nullable": true
          },
          "customFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField"
            },
            "nullable": true
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupLookup"
            },
            "nullable": true
          },
          "leavePlanInfo": {
            "$ref": "#/components/schemas/LookupInfo"
          },
          "holidayCalendarId": {
            "type": "string",
            "nullable": true
          },
          "bandInfo": {
            "$ref": "#/components/schemas/LookupInfo"
          },
          "payGradeInfo": {
            "$ref": "#/components/schemas/LookupInfo"
          },
          "shiftPolicyInfo": {
            "$ref": "#/components/schemas/LookupInfo"
          },
          "weeklyOffPolicyInfo": {
            "$ref": "#/components/schemas/LookupInfo"
          },
          "captureSchemeInfo": {
            "$ref": "#/components/schemas/LookupInfo"
          },
          "trackingPolicyInfo": {
            "$ref": "#/components/schemas/LookupInfo"
          },
          "expensePolicyInfo": {
            "$ref": "#/components/schemas/LookupInfo"
          },
          "overtimePolicyInfo": {
            "$ref": "#/components/schemas/LookupInfo"
          }
        },
        "additionalProperties": false
      },
      "EmployeeProfilePagedResponse": {
        "type": "object",
        "properties": {
          "succeeded": {
            "type": "boolean",
            "description": "Gets or sets a value indicating whether this Keka.API.Web.Core.Response`1 is succeeded."
          },
          "message": {
            "type": "string",
            "description": "Gets or sets the message.",
            "nullable": true
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Gets or sets the errors.",
            "nullable": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmployeeProfile"
            },
            "description": "Gets or sets the data.",
            "nullable": true
          },
          "pageNumber": {
            "type": "integer",
            "description": "Gets or sets the page number.",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "description": "Gets or sets the size of the page.",
            "format": "int32"
          },
          "firstPage": {
            "type": "string",
            "description": "Gets or sets the first page.",
            "format": "uri",
            "nullable": true
          },
          "lastPage": {
            "type": "string",
            "description": "Gets or sets the last page.",
            "format": "uri",
            "nullable": true
          },
          "totalPages": {
            "type": "integer",
            "description": "Gets or sets the total pages.",
            "format": "int32"
          },
          "totalRecords": {
            "type": "integer",
            "description": "Gets or sets the total records.",
            "format": "int32"
          },
          "nextPage": {
            "type": "string",
            "description": "Gets or sets the next page.",
            "format": "uri",
            "nullable": true
          },
          "previousPage": {
            "type": "string",
            "description": "Gets or sets the previous page.",
            "format": "uri",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "class represents paged response."
      },
      "EmploymentStatus": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "ExitStatus": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "ExitType": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "Experience": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "location": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "dateOfJoining": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dateOfRelieving": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "customFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Gender": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "GroupLookup": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "groupType": {
            "$ref": "#/components/schemas/SystemGroupType"
          }
        },
        "additionalProperties": false
      },
      "Image": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "thumbs": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InvitationStatus": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "LookupInfo": {
        "type": "object",
        "properties": {
          "identifier": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MaritalStatus": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "Relation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "relationType": {
            "$ref": "#/components/schemas/RelationType"
          },
          "gender": {
            "$ref": "#/components/schemas/Gender"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "profession": {
            "type": "string",
            "nullable": true
          },
          "mobile": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RelationType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9
        ],
        "type": "integer",
        "format": "int32"
      },
      "SystemGroupType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9
        ],
        "type": "integer",
        "format": "int32"
      },
      "TimeType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "WorkerType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://login.keka.com/connect/authorize",
            "scopes": {
              "kekaapi": "Keka API"
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": []
    }
  ]
}
```