v2
latestOpenAPI 3.1.12026-08-0785394779.1 KBEmployees
Create an employee
Creates an employee with the linked employer. If the employer has an active health insurance scheme that automatically provides insurance to employees the employee will be enrolled.
post/employees
Headers
Idempotency-Keystring
Unique key to ensure idempotent requests. If the same key is used for multiple identical & successful requests, the same response will be returned. Read more here
X-Platform-Idstring
The target platform id. Required only when calling with a dashboard (WorkOS AuthKit) access token instead of a platform API key — the token carries no platform claim, so the caller must say which platform it means. Ignored for platform API key / embed session token callers.
Request body
Example request
{
"employer_id": "er_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"date_of_birth": "2024-12-01",
"start_on": "2024-12-01",
"earliest_benefits_start_date": "2024-12-01"
}Response
OK
Example response
{
"platform_id": "pt_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"id": "ee_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"employer_id": "er_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"date_of_birth": "2024-12-01",
"start_on": "2024-12-01",
"earliest_benefits_start_date": "2024-12-01",
"offboard_on": "2024-12-01T00:00:00Z"
}