Auto-answer uploaded questionnaire
curl --request POST \
--url https://api.trycomp.ai/v1/questionnaire/parse/upload \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <api-key>' \
--form file='@example-file' \
--form 'organizationId=<string>'const form = new FormData();
form.append('file', '<string>');
form.append('organizationId', '<string>');
const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
options.body = form;
fetch('https://api.trycomp.ai/v1/questionnaire/parse/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/questionnaire/parse/upload"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "organizationId": "<string>" }
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)Questionnaire
Auto-answer uploaded questionnaire | Comp AI API
Upload a questionnaire file and generate answer exports from approved organization evidence in PDF, CSV, or XLSX format.
POST
/
v1
/
questionnaire
/
parse
/
upload
Auto-answer uploaded questionnaire
curl --request POST \
--url https://api.trycomp.ai/v1/questionnaire/parse/upload \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <api-key>' \
--form file='@example-file' \
--form 'organizationId=<string>'const form = new FormData();
form.append('file', '<string>');
form.append('organizationId', '<string>');
const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
options.body = form;
fetch('https://api.trycomp.ai/v1/questionnaire/parse/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/questionnaire/parse/upload"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "organizationId": "<string>" }
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)Authorizations
API key for authentication
Body
multipart/form-data
Questionnaire file (PDF, image, XLSX, CSV, TXT)
Organization to use for generating answers
Output format (defaults to XLSX)
Available options:
pdf, csv, xlsx Indicates if the request originated from our UI (internal) or trust portal (external).
Available options:
internal, external Response
201 - undefined
Was this page helpful?

