safe_mind_get_analytics
Retrieve aggregated survey analytics per category, optionally grouped by department, location, age group, or gender, while suppressing groups below the anonymity threshold.
Instructions
Aggregated results of one survey: respondent count, anonymity threshold and the average score per category (scale -1 to +1, higher is better; the Safe Mind app shows the same values times 10). With groupBy the averages are split by department, location, age group or gender. Groups below the anonymity threshold are never returned, only counted in suppressedGroupCount, and individual answers are never exposed. resultsAvailable is false until the survey is paid. Read-only. Requires an API key: set SAFE_MIND_API_KEY or call safe_mind_get_api_key first. Acts on the company of the account behind the key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupBy | No | Optional split of the results. Omit for the overall result of the whole survey. | |
| surveyId | Yes | Survey id (UUID) as returned by safe_mind_list_surveys or safe_mind_create_survey. |