Skip to content

Download the answered file

GET
/api/v1/questionnaires/{id}/download

Returns DOCX or XLSX depending on the uploaded file, as an attachment. Requires an original file, the mapping metadata captured during import, and at least one answered item. Audited.

NameType
id
required
string

The record’s prefixed ID

200

The exported document

Response body
string format: binary

404

No original file attached, or no such questionnaire

Response body
Media typeapplication/json
object
error
object
code
string

A stable machine-readable code

message
string
details
Array<string>

Present on validation errors; one entry per failed validation

422

Nothing to export (no metadata or no answers), or the export failed

Response body
Media typeapplication/json
object
error
object
code
string

A stable machine-readable code

message
string
details
Array<string>

Present on validation errors; one entry per failed validation