Skip to content

Upload and parse questionnaire file

POST
/v1/questionnaire/upload-and-parse/upload
curl --request POST \
--url https://api.varman.io/v1/questionnaire/upload-and-parse/upload \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <X-API-Key>' \
--form file=@file \
--form organizationId=example \
--form source=internal

Upload a security questionnaire file, extract questions, save the parsed questionnaire, and return its identifier and question count.

Media typemultipart/form-data
object
file
required

Questionnaire file (PDF, image, XLSX, CSV, TXT)

string format: binary
organizationId
required

Organization ID

string
source

Source of the upload

string
default: internal
Allowed values: internal external

Upload file, parse questions (no answers), save to DB, return questionnaireId

Media typeapplication/json
object
questionnaireId
string
totalQuestions
number

Example generated

{
"questionnaireId": "example",
"totalQuestions": 1
}