Get form stats
get_form_statsRead submission statistics for a form in the current team: KPI overview (total / today / last 7 / last 30, unique examinees, anonymous, report status counts, average score, latest submission), daily submission trend, channels (by utm_source), UTM combos, login types (anonymous vs registered), device breakdown, and per-question answer distributions. days only sets the length of the daily trend; every other block counts all submissions ever made. Answer distributions cover only the first 10 SingleCheck / DropDown / Rate / TrueFalse questions in form order (other types, MultiCheck included, are not counted); each bucket carries the choice label next to its stored value. Use this to gauge how a quiz is performing and to suggest improvements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Length of the daily trend in days, default 30, max 180. Does not filter the other blocks. | |
| formId | Yes | The form UUID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Length of the daily trend actually used (other blocks are all-time) | |
| trend | No | One entry per day in the window, zero-filled | |
| formId | No | The form these stats belong to | |
| devices | No | Submissions by device type | |
| channels | No | Submissions by utm_source | |
| overview | No | KPI block: { totalSubmissions, todaySubmissions, yesterdaySubmissions, last7daysSubmissions, last30daysSubmissions, uniqueExaminees, anonymousSubmissions, reportCompleted, reportFailed, reportPending, avgScore, latestSubmittedAt } | |
| utmCombos | No | Submissions by UTM combo | |
| loginTypes | No | Anonymous vs registered submissions | |
| answerDistributions | No | All-time answer distribution of the first 10 SingleCheck / DropDown / Rate / TrueFalse questions |