List employees
Returns a paginated list of employees.
Authorizations
The Lucca API implements the oAuth 2 protocol with the client-credentials-flow. Refer to RFC8725.
Headers
Only execute the request if current cached version of the resource does not match the one given here.
"W/q5sd4w2x1c1gfdg"
Only execute the request if current cached version of the resource matches the one given here. Useful to avoid concurrency conflicts.
"W/q5sd4w2x1c1gfdg"
List of compression algorithms you support.
Query Parameters
Include metadata:
embedded
: the partial or complete representations of related resources (e.g. the employee the resource belongs to).links
: links to related resources or actions (e.g. approving a leave-request). May benull
when you do not have access to the resource (or action).totalCount
: only applicable on collections (i.e. lists of resources), gives the total number of items across all pages.
Read more about expanding responses.
embedded
, links
, totalCount
Cursor of the page to retrieve. Read more about pagination.
Number of items per page. Defaults to 25. Maximum is 100. Read more about pagination.
0 <= x <= 100
Find an employee by their name. The employee given or family names must start with the given words. Each word can be delimited with any of these delimiters: [' ', '-', '_', ',', '.']
.
1
Filter out employees on their ID.
["123", "456"]
Filter out employees on their status.
Read-only. The employee status is calculated from the employee's employments.
- active: employee has an employment as of today.
- upcoming: employee currently has no employment but will have one in the future.
- deactivated: employee used to have an employment but no longer does.
active
, upcoming
, deactivated
["active"]
Filter out employees on their active employment legal-entity IDs.
["12", "13"]
Filter out employees on their active employment remoteId.
["E001", "E023"]
Filter out employees on their active employment startsOn date (strict equality).
Filter out employees on their active employment startsOn date. ISO 8601 formatted date-range string.
"2024-01-01--2024-12-31"
Filter out employees on their applicable employment endsOn date (strict equality).
Filter out employees on their applicable employment endsOn date. ISO 8601 formatted date-range string.
"2024-01-01--2024-12-31"
Filter out employees on their applicable employment template IDs.
["1", "2", "5"]
Filter out employees on their applicable employment template term.
Term of an employment.
permanent
, fixed
["permanent"]
Filter out employees on their applicable job-position remoteId.
["null", "JP001", "JP002"]
Filter out employees on their active job-position business-establishment IDs.
["12", "13"]
Filter out employees on their applicable job-position department IDs.
["123", "452"]
Filter out employees on their manager's IDs.
["416", "521"]
Filter out employees on their applicable job-position job-qualification IDs.
["25", "28"]
Filter out employees on their active job-position job-qualification remoteId.
["null", "JQ001", "JQ002"]
Filter out employees on their active job-position occupation-category IDs.
["5", "12"]
Filter out employees on their active job-position occupation-category remoteId.
["null", "OC001", "OC002"]
Order employees by given instruction. Read more about sorting. Default: +id
.
id
, +id
, -id
, familyName
, +familyName
, -familyName
, createdAt
, +createdAt
, -createdAt
Response
A collection of employee resources.
"employees"
Paginated list of employee resources.
The employee represents the public face of an employee in the system. Note that an employee can also represent a trainee, an intern, a contractor, etc...
The applicableEmployment
property references the employee's employment that is:
- currently in effect if the employee is "active".
- will first be in effect if the employee has an employment starting in the future (either the first or a new one).
- was last in effect if the employee is no longer employed and is not expected to be re-remployed in the future.
The applicableJobPosition
property references the employee's job-position that matches the same logic.
Total number of employee resources across all pages that satisfy query parameters.
x >= 0
Links to related resources
Was this page helpful?