API Versions
v1.2.8
Public API - surveys, teams, terminations, legal entities, reference field values, and compensation totals.
API v1.2.8 New features
Surveys
POST /api/v1/surveys/search- surveys with status, dates, progress, and anonymity threshold.POST /api/v1/surveys/{survey_id}/results- per-question distributions and eNPS with department and manager breakdowns.POST /api/v1/surveys/{survey_id}/answers/search- individual answers, filtered by question, employee, text, or comment.POST /api/v1/surveys/{survey_id}/participants/search- participants with their status.- On an anonymous survey the respondent and participant status are
null, and filters by employee or status return422. Below the anonymity threshold results and answers are empty. See Surveys.
Teams
GET /api/v1/teams/{team_id},POST /api/v1/teams,PUT /api/v1/teams/{team_id},DELETE /api/v1/teams/{team_id}- read, create, update, and delete teams with links and members.PUTchanges only the sent fields;membersreplaces the whole member list. Writes requiremanage_teams = edit. See Teams.
Terminations
GET /api/v1/employees/{employee_id}/terminationsandPOST /api/v1/employees/terminations/search- termination records, including past employment periods of rehired employees. See Terminations.- A termination now returns
employee_id, and itstermination_leave_typereturnsis_voluntary. The items ofGET /api/v1/organization-lists/type/termination_leave_typesreturnis_voluntarytoo.
Legal entities
GET /api/v1/legal-entities- every legal entity sorted by title, archived included. See Legal entities.
Reference fields
- For
entity_referencefields,optionsinGET /api/v1/custom-fields/fieldsandGET /api/v1/custom-fields/tablesare now the active records of the referenced directory (for example, legal entities) instead of the old select options. - Values of custom fields and table cells return
value_references-id,title, andis_archivedof each referenced record, invalue_int_arrayorder. See Custom Tables.
URL labels
- A
urlfield takes an optionalvalue_label(up to 255 characters) shown instead of the address. It is accepted in employee custom fields and table rows, and returned in their values.
Changes
Compensations
- Package lines return
is_off_payroll. Off-payroll lines and off-payroll additional compensations are now returned under the usual compensation permissions. - A compensation version returns
rollups- gross, official and actual net, total cost, and implied deductions in the rollup currency. base_salary_netis deprecated: userollups.net_official_amountorrollups.net_actual_amount. See Compensation history.
Employees
PUT /api/v1/employees/{employee_id}changes only the sent fields: an omitted field keeps its value,nullclears it.GET /api/v1/employees/{employee_id}returnsapplicant_idandcandidate_idof the recruitment the employee was hired from.POSTandPUT /api/v1/employees/{employee_id}/field-tables/{table_id}/rowsreturn the saved row instead of{"success": true};successstays in the response.tab_idof a custom table can benull.
Time off
POST /api/v1/time-off/employee/balancereturnscan_request- whether a request can be created in the category.- For a terminated employee the balance after the termination date is calculated on the termination date.
Recruitment and job catalog
- Applicants return
employee_id- the employee hired from the applicant. linkcontacts of applicants gethttps://when sent without a scheme; unsafe schemes are rejected with422.- Jobs return
priority. - Job catalog profiles return
salary_ranges- salary ranges by country or zone with min, mid, and max;nullwithoutsettings_positions_levels.
