Skip to Content
API ReferenceSurveys

Survey Results

POST
/api/v1/surveys/{survey_id}/results

Per-question distributions and eNPS with department and manager breakdowns. Below the anonymity threshold questions is empty. Requires view access to the survey

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

survey_id*Survey Id

Request Body

application/json
  1. body
department_ids?array<integer>|null
job_profile_ids?array<integer>|null
job_role_ids?array<integer>|null
manager_ids?array<integer>|null

Response Body

Successful Response

application/json
  1. response
survey_id*Survey Id
is_anonymous*Is Anonymous
is_below_anonymity_threshold*Is Below Anonymity Threshold
questions*array<>
Example Request
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            }          }        ]      }    }  ]}