Parse questionnaire content
curl --request POST \
--url https://api.trycomp.ai/v1/questionnaire/parse \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fileData": "<string>",
"fileType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fileData: '<string>',
fileType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
})
};
fetch('https://api.trycomp.ai/v1/questionnaire/parse', 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"
payload = {
"fileData": "<string>",
"fileType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Questionnaire
Parse questionnaire content | Comp AI API
Parse questionnaire content from a submitted payload so teams can extract security questions before generating or reviewing answers.
POST
/
v1
/
questionnaire
/
parse
Parse questionnaire content
curl --request POST \
--url https://api.trycomp.ai/v1/questionnaire/parse \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fileData": "<string>",
"fileType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fileData: '<string>',
fileType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
})
};
fetch('https://api.trycomp.ai/v1/questionnaire/parse', 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"
payload = {
"fileData": "<string>",
"fileType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Authorizations
API key for authentication
Body
application/json
Base64-encoded contents of the questionnaire file.
MIME type of the file (PDF, image, XLSX, CSV, TXT).
Example:
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
Original name of the questionnaire file.
Example:
"vendor-security-questionnaire.xlsx"
Name of the vendor the questionnaire came from.
Example:
"Acme Corp"
Response
200 - application/json
Parsed questionnaire content
The response is of type object.
Was this page helpful?

