This endpoint allows you to retrieve employee data based on specified criteria.
Please note that this endpoint requires body parameters, which is why it utilizes a POST request for a read operation.
Before using this endpoint:
- Explore the People API main reference page for information about rate limits, permissions, troubleshooting and more.
- Note that only employee fields are supported. Table entries cannot be retrieved via this endpoint. Use Employee Tables endpoints for this.
- Default fields. If no specific fields are requested, a default set of fields will be returned, as listed in the 200 response, based on the service user permissions. If you want to retrieve other fields, you will need to specify their field id in the body parameters.
- Custom fields. To retrieve custom fields you need to specify their field id in the body parameters and ensure you have the approriate permissions to the category.
- Position fields cannot be retrieved using this endpoint. To pull 'Positions', use the Workforce Planning endpoints.
Testing notes:
- Use the testing widget's Try It! option to test this endpoint.
- Use the Examples > Request Example option to see how to initiate body parameters.
- Explore the response payload using the Example in the Response on the right, to understand the structure. You can see the response for the human-readable format and for the machine-format (backend IDs).
400Bad request. The request contains incorrect parameters or syntax errors. Please review the request body
403Forbidden. The service user does not have permissions to access this table or employees. Check the permissions as explained in the endpoint description.
429"Too Many Requests" error. This indicates that you've exceeded the rate limit for requests. Please verify that you are using the correct endpoint with the POST method. Additionally, check the HTTP headers for rate limit information, such as the number of requests allowed and the time until the limit resets. For more details, see Rate Limiting.
