API reference
Employees API
4 operations for employees. Each one names the scope your API key needs.
Scopes used here: people.employee.read , people.employee.create , people.employee.update
List employees, newest-id-last, cursor paginated
GET /employees
Scope: people.employee.read
Parameters
| Name | In | Description |
|---|---|---|
status | query | Filter by employee status. |
cursor | query | Opaque cursor from a previous response's nextCursor. |
limit | query | Page size, 1-200. Defaults to 50. |
Response 200
| Field | Type | Notes |
|---|---|---|
data | array of object required | |
data[].id | string (uuid) required | |
data[].employeeCode | string required | |
data[].status | string required | |
data[].displayName | string, nullable required | |
data[].firstName | string required | |
data[].lastName | string, nullable required | |
data[].workEmail | string, nullable required | |
data[].legalEntityId | string (uuid) required | |
data[].primaryLocationId | string (uuid), nullable required | |
data[].dateOfBirth | string, nullable required | Masked unless read individually with unmask rights. |
data[].createdAt | string or string (date-time) required | ISO-8601 timestamp |
data[].updatedAt | string or string (date-time) required | ISO-8601 timestamp |
nextCursor | string, nullable required | Opaque. Pass back as ?cursor= for the next page; null on the last page. |
Errors: 400 · 401 · 403 · 404 · 422 · 429
(error format)
curl -s 'https://<your-company>.<app-domain>/api/v1/employees' \
-H 'Authorization: Bearer YOUR_API_KEY' Create an employee
POST /employees
Scope: people.employee.create
Headers: Idempotency-Key
(see idempotency)
Request body
| Field | Type | Notes |
|---|---|---|
employeeCode | string | |
legalEntityId | string (uuid) required | |
rehiredFromEmployeeId | string (uuid) | |
primaryLocationId | string (uuid) | |
userId | string (uuid) | |
status | string |
One of: pre_boarding , onboarding , active , on_notice , suspended , exited , no_show |
firstName | string required | |
middleName | string | |
lastName | string | |
displayName | string | |
gender | string |
One of: male , female , non_binary , prefer_not |
dateOfBirth | string | |
bloodGroup | string | |
maritalStatus | string |
One of: single , married , divorced , widowed , other |
nationality | string | |
pronouns | string | |
photoDocumentId | string (uuid) | |
workEmail | string (email) | |
personalEmail | string (email) | |
workPhone | string | |
personalPhone | string | |
personalPhoneWhatsapp | boolean | |
currentAddress | object | |
permanentAddress | object | |
sameAsCurrent | boolean |
Response 201
| Field | Type | Notes |
|---|---|---|
id | string (uuid) required | |
employeeCode | string required | |
status | string required | |
displayName | string, nullable required | |
firstName | string required | |
lastName | string, nullable required | |
workEmail | string, nullable required | |
legalEntityId | string (uuid) required | |
primaryLocationId | string (uuid), nullable required | |
dateOfBirth | string, nullable required | Masked unless read individually with unmask rights. |
createdAt | string or string (date-time) required | ISO-8601 timestamp |
updatedAt | string or string (date-time) required | ISO-8601 timestamp |
Errors: 400 · 401 · 403 · 404 · 422 · 429
(error format)
curl -s -X POST 'https://<your-company>.<app-domain>/api/v1/employees' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: <a unique value>' \
--data '{ … }' Fetch one employee. PII fields are returned masked
GET /employees/{id}
Scope: people.employee.read
Parameters
| Name | In | Description |
|---|---|---|
id required | path |
Response 200
| Field | Type | Notes |
|---|---|---|
id | string (uuid) required | |
employeeCode | string required | |
status | string required | |
displayName | string, nullable required | |
firstName | string required | |
lastName | string, nullable required | |
workEmail | string, nullable required | |
legalEntityId | string (uuid) required | |
primaryLocationId | string (uuid), nullable required | |
dateOfBirth | string, nullable required | Masked unless read individually with unmask rights. |
createdAt | string or string (date-time) required | ISO-8601 timestamp |
updatedAt | string or string (date-time) required | ISO-8601 timestamp |
Errors: 400 · 401 · 403 · 404 · 422 · 429
(error format)
curl -s 'https://<your-company>.<app-domain>/api/v1/employees/<id>' \
-H 'Authorization: Bearer YOUR_API_KEY' Update an employee's mutable fields
PATCH /employees/{id}
Scope: people.employee.update
Parameters
| Name | In | Description |
|---|---|---|
id required | path |
Request body
| Field | Type | Notes |
|---|---|---|
primaryLocationId | string (uuid) | |
userId | string (uuid) | |
firstName | string | |
middleName | string, nullable | |
lastName | string | |
displayName | string | |
gender | string, nullable |
One of: male , female , non_binary , prefer_not |
dateOfBirth | string | |
bloodGroup | string, nullable | |
maritalStatus | string, nullable |
One of: single , married , divorced , widowed , other |
nationality | string | |
pronouns | string, nullable | |
photoDocumentId | string (uuid) | |
workEmail | string (email) | |
personalEmail | string (email), nullable | |
workPhone | string, nullable | |
personalPhone | string, nullable | |
personalPhoneWhatsapp | boolean | |
currentAddress | object | |
permanentAddress | object | |
sameAsCurrent | boolean |
Response 200
| Field | Type | Notes |
|---|---|---|
id | string (uuid) required | |
employeeCode | string required | |
status | string required | |
displayName | string, nullable required | |
firstName | string required | |
lastName | string, nullable required | |
workEmail | string, nullable required | |
legalEntityId | string (uuid) required | |
primaryLocationId | string (uuid), nullable required | |
dateOfBirth | string, nullable required | Masked unless read individually with unmask rights. |
createdAt | string or string (date-time) required | ISO-8601 timestamp |
updatedAt | string or string (date-time) required | ISO-8601 timestamp |
Errors: 400 · 401 · 403 · 404 · 422 · 429
(error format)
curl -s -X PATCH 'https://<your-company>.<app-domain>/api/v1/employees/<id>' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{ … }'