Get employees of a company
Changed onGet all of the employees, onboarding, active and terminated, for a given company.
Note: Compensation data (pay rate, payment unit, and related fields) represents sensitive employee pay information. When retrieving employee job data, these fields (rate, payment_unit, current_compensation_uuid, compensations) are only returned when the compensations:read scope is included. This allows you to access employee and job metadata without exposing pay rates.
scope: employees:read
Request
- Base URLhttps://api.gusto-demo.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The UUID of the company
Query parameters
Filter employees by a specific primary work location
Filter employees by a specific payroll
A string to search for in the object's names
Sort employees by a given field. Cannot be used with search_term. Append :asc or :desc to specify direction (e.g., name:desc). Defaults to ascending.
Include the requested attribute(s) in each employee response. Multiple options are comma separated.
Filters employees by those who have completed onboarding
Filters employees who are ready to work (onboarded AND active today)
Filters employees by those who have been or are scheduled to be terminated
Filters employees by those who have been terminated and whose termination is in effect today (excludes active and scheduled to be terminated)
Optional subset of employees to fetch.
The page that is requested. When unspecified, will load all objects unless endpoint forces pagination.
Number of objects per page. For majority of endpoints will default to 25
Headers
Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.
Response
successful
Example response
[
{
"eligible_paid_time_off": [
{
"accrual_unit": "Hour",
"accrual_method": "unlimited",
"accrual_period": "Year"
}
],
"current_home_address": {
"street_1": "412 Kiera Stravenue",
"street_2": "Suite 391",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "USA",
"active": true,
"uud": "sample-uuid-123231"
},
"all_home_addresses": [
{
"street_1": "412 Kiera Stravenue",
"street_2": "Suite 391",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "USA",
"active": true,
"uud": "sample-uuid-123231",
"effective_date": "2024-01-01"
}
]
}
]Changes
- warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - info
added to the
response propertyallOflist for the response status - info
removed from the
response propertyallOflist for the response status
- warning