API ReferenceSurveys
Survey Results
POST
Per-question distributions and eNPS with department and manager breakdowns. Below the anonymity threshold questions is empty. Requires view access to the survey
HttpBearerAuthheader
AuthorizationBearer <JWT>survey_id*Survey Idapplication/json- body
department_ids?array<integer>|nulljob_profile_ids?array<integer>|nulljob_role_ids?array<integer>|nullmanager_ids?array<integer>|nullSuccessful Response
application/json- response
survey_id*Survey Idis_anonymous*Is Anonymousis_below_anonymity_threshold*Is Below Anonymity Thresholdquestions*array<>curl -X POST 'https://api.skailer.com/api/v1/surveys/0/results' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "survey_id": 0, "is_anonymous": true, "is_below_anonymity_threshold": true, "questions": [ { "form_element_id": 0, "type": "scale", "title": "string", "options": [ { "id": 0, "title": "string", "emoji": "string", "value": 0, "is_not_applicable": true, "scale": 0, "count": 0 } ], "total_answers": 0, "comments_count": 0, "enps": { "score": { "enps_score": 0, "promoters_count": 0, "promoters_percent": 0, "passives_count": 0, "passives_percent": 0, "detractors_count": 0, "detractors_percent": 0 }, "by_departments": [ { "department_id": 0, "department_title": "string", "score": { "enps_score": 0, "promoters_count": 0, "promoters_percent": 0, "passives_count": 0, "passives_percent": 0, "detractors_count": 0, "detractors_percent": 0 } } ], "by_managers": [ { "manager_id": 0, "manager_name": "string", "score": { "enps_score": 0, "promoters_count": 0, "promoters_percent": 0, "passives_count": 0, "passives_percent": 0, "detractors_count": 0, "detractors_percent": 0 } } ] } } ]}Search Surveys POST
Requires `feature talent_surveys=true` and `surveys_module=edit`; without `surveys_manage_all=edit` only own or shared surveys are returned
Search Survey Answers POST
Individual answers to all survey questions, each with its `form_element_id`; filter by `employee_ids` to get specific employees' answers. On an anonymous survey `employee` is null and the `employee_ids` filter is rejected with 422. Below the anonymity threshold `items` is empty and `is_below_anonymity_threshold` is true. Requires view access to the survey
