Save questionnaire answer
curl --request POST \
--url https://api.trycomp.ai/v1/questionnaire/save-answer \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{}'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.trycomp.ai/v1/questionnaire/save-answer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/questionnaire/save-answer"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"error": "<string>"
}Questionnaire
Save questionnaire answer | Comp AI API
Save a manual or AI-generated security questionnaire answer for later review, export, and audit tracking.
POST
/
v1
/
questionnaire
/
save-answer
Save questionnaire answer
curl --request POST \
--url https://api.trycomp.ai/v1/questionnaire/save-answer \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{}'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.trycomp.ai/v1/questionnaire/save-answer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/questionnaire/save-answer"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"error": "<string>"
}Was this page helpful?

