GET
/v1/employees List all employees
Returns employees for a company, newest first. Results are paginated with a cursor; terminated employees are excluded unless you ask for them.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
company_id | string | Yes | The company to list employees for. |
status | string | No | One of active, terminated, or all. Defaults to active. |
limit | integer | No | Between 1 and 100. Defaults to 25. |
starting_after | string | No | Cursor from a previous page's last object id. |
Request
curl https://api.payflo.dev/v1/employees \
-H "Authorization: Bearer $PAYFLO_API_KEY" \
-G -d company_id=cmp_8f2a -d limit=2 Response
{
"object": "list",
"has_more": true,
"data": [
{
"id": "emp_4c19",
"first_name": "Dana",
"last_name": "Reyes",
"status": "active",
"compensation": { "type": "salary", "annual_cents": 12000000 },
"work_location": { "state": "CA" }
}
]
}