Export a security questionnaire
curl --request POST \
--url https://api.trycomp.ai/v1/questionnaire/export \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"questionnaireId": "qst_abc123",
"organizationId": "org_abc123",
"format": "xlsx"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({questionnaireId: 'qst_abc123', organizationId: 'org_abc123', format: 'xlsx'})
};
fetch('https://api.trycomp.ai/v1/questionnaire/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/questionnaire/export"
payload = {
"questionnaireId": "qst_abc123",
"organizationId": "org_abc123",
"format": "xlsx"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Questionnaire
Export a security questionnaire | Comp AI API
Export a saved security questionnaire response package as PDF, CSV, or XLSX for customer and vendor security reviews.
POST
/
v1
/
questionnaire
/
export
Export a security questionnaire
curl --request POST \
--url https://api.trycomp.ai/v1/questionnaire/export \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"questionnaireId": "qst_abc123",
"organizationId": "org_abc123",
"format": "xlsx"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({questionnaireId: 'qst_abc123', organizationId: 'org_abc123', format: 'xlsx'})
};
fetch('https://api.trycomp.ai/v1/questionnaire/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/questionnaire/export"
payload = {
"questionnaireId": "qst_abc123",
"organizationId": "org_abc123",
"format": "xlsx"
}
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
Questionnaire to export, including all of its answers.
Example:
"qst_abc123"
Organization ID. The API overwrites this with the authenticated active organization.
Example:
"org_abc123"
File format to export the questionnaire in.
Available options:
xlsx, csv, pdf Example:
"xlsx"
Response
200
Export questionnaire by ID to specified format
Was this page helpful?

