v2
latestOpenAPI 3.1.12026-08-0785394779.1 KBAssociated Persons
Create an associated person
Creates an associated person (dependent or beneficiary) linked to an employee.
post/employees/{employee_id}/associated_persons
Path parameters
employee_idstring required
Example:ee_3b1333d87d9d4fd6ad83ba7f6b0e951a
Headers
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
{
"date_of_birth": "2024-12-01"
}Response
OK
Example response
{
"id": "ap_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"platform_id": "pt_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"employee_id": "ee_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"date_of_birth": "2024-12-01"
}