List employees
GET/v1/employers/{employer_id}/employees
Retrieves a paginated list of all employees for a specific employer. Results are paginated using page and limit parameters.
List employees
curl https://api.vitablehealth.com/v1/employers/$EMPLOYER_ID/employees \
-H "Authorization: Bearer $VITABLE_CONNECT_API_KEY"{
"data": [
{
"id": "empl_abc123",
"member_id": "mbr_xyz789",
"reference_id": "partner-ee-001",
"first_name": "John",
"last_name": "Doe",
"suffix": null,
"email": "john.doe@example.com",
"date_of_birth": "1985-06-15",
"gender": null,
"phone": "4155551234",
"employee_class": "Full Time",
"status": "active",
"hire_date": "2023-01-15",
"termination_date": null,
"address": {
"address_line_1": "456 Oak Avenue",
"address_line_2": "Apt 2B",
"city": "San Francisco",
"state": "CA",
"zipcode": "94102"
},
"enrollments": [
{
"id": "enrl_abc123",
"status": "enrolled",
"answered_at": "2023-01-20T10:00:00Z"
}
],
"created_at": "2023-01-15T09:00:00Z",
"updated_at": "2024-06-01T14:30:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 1,
"total_pages": 1
}
}Returns Examples
{
"data": [
{
"id": "empl_abc123",
"member_id": "mbr_xyz789",
"reference_id": "partner-ee-001",
"first_name": "John",
"last_name": "Doe",
"suffix": null,
"email": "john.doe@example.com",
"date_of_birth": "1985-06-15",
"gender": null,
"phone": "4155551234",
"employee_class": "Full Time",
"status": "active",
"hire_date": "2023-01-15",
"termination_date": null,
"address": {
"address_line_1": "456 Oak Avenue",
"address_line_2": "Apt 2B",
"city": "San Francisco",
"state": "CA",
"zipcode": "94102"
},
"enrollments": [
{
"id": "enrl_abc123",
"status": "enrolled",
"answered_at": "2023-01-20T10:00:00Z"
}
],
"created_at": "2023-01-15T09:00:00Z",
"updated_at": "2024-06-01T14:30:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 1,
"total_pages": 1
}
}