Create a questionnaire
/api/v1/questionnairesSend the questionnaire as a multipart upload with file set to an
.xlsx or .docx. Processing is asynchronous: the response returns
the questionnaire before any items exist, and items appear as the
file is analysed. state moves through the processing states and
settles in needs_input once every item has been answered.
For portal questionnaires (answered in a third-party portal) send
portal_url and no file; nothing is processed. When title is
omitted it is derived from the filename. The caller becomes the
questionnaire’s owner. Rate limited to 3 per minute.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Defaults to the filename on create
.xlsx or .docx; multipart create only
Other values are dropped silently
object
object
Defaults to the filename on create
.xlsx or .docx; multipart create only
Other values are dropped silently
Responses
Section titled “Responses”201
The created questionnaire
The created questionnaire
object
The questionnaire’s page in the web app
Processing and review state
Set for questionnaires answered in a third-party portal
Item counts. Discarded items are excluded.
object
Items the AI could not answer confidently
Approved items as a percentage of total
403
Insufficient scope, role, or credits
Insufficient scope, role, or credits
object
object
A stable machine-readable code
Present on validation errors; one entry per failed validation
422
The record could not be saved
The record could not be saved
object
object
A stable machine-readable code
Present on validation errors; one entry per failed validation