Responses Export
responses_exportGet download links for a survey's responses as a spreadsheet: csvUrl and xlsxUrl (Excel). format 'wide' is one row per response; 'flat' is one row per answer. Give the user the link they need as a clickable absolute link: it downloads in a browser signed in to QuestionPunk (or with the connection's Bearer token), and is not a public share link. To analyze responses yourself, read them with responses_read instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"surveyId": "<surveyId>"
},
"name": "responses_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | 'wide' (default): one row per response; 'flat': one row per answer | |
| status | No | completed, abandoned (left before the end) or in_progress. Omit for all. | |
| dateEnd | No | Only responses started at/before this time, as Unix milliseconds (13 digits) | |
| surveyId | Yes | Survey ID (from survey_list) | |
| timezone | No | IANA timezone for dates in the file, e.g. "America/New_York" | |
| dateStart | No | Only responses started at/after this time, as Unix milliseconds (13 digits; 2025-01-01T00:00Z is 1735689600000) | |
| answerFormat | No | Choice answers as labels (default), 1-based numbers, or both | |
| responseType | No | Real respondents or synthetic (AI) responses. Omit for both. | |
| suspiciousLevel | No | Fraud-check filter. 'clean' excludes suspicious responses; 'flagged' is high + medium. | |
| surveyRevisionId | No | Only responses collected on this published revision |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |