Save reusable manual answer
curl --request POST \
--url https://api.trycomp.ai/v1/knowledge-base/manual-answers \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"question": "Do you encrypt customer data at rest?",
"answer": "Yes, all customer data is encrypted at rest with AES-256."
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
question: 'Do you encrypt customer data at rest?',
answer: 'Yes, all customer data is encrypted at rest with AES-256.'
})
};
fetch('https://api.trycomp.ai/v1/knowledge-base/manual-answers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/knowledge-base/manual-answers"
payload = {
"question": "Do you encrypt customer data at rest?",
"answer": "Yes, all customer data is encrypted at rest with AES-256."
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Knowledge Base
Save reusable manual answer | Comp AI API
Save or update a reusable manual answer for security questionnaires that need approved, consistent response language.
POST
/
v1
/
knowledge-base
/
manual-answers
Save reusable manual answer
curl --request POST \
--url https://api.trycomp.ai/v1/knowledge-base/manual-answers \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"question": "Do you encrypt customer data at rest?",
"answer": "Yes, all customer data is encrypted at rest with AES-256."
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
question: 'Do you encrypt customer data at rest?',
answer: 'Yes, all customer data is encrypted at rest with AES-256.'
})
};
fetch('https://api.trycomp.ai/v1/knowledge-base/manual-answers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/knowledge-base/manual-answers"
payload = {
"question": "Do you encrypt customer data at rest?",
"answer": "Yes, all customer data is encrypted at rest with AES-256."
}
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
Question this manual answer covers. Unique per organization, so re-sending it updates the answer.
Example:
"Do you encrypt customer data at rest?"
Answer text reused when generating questionnaire answers.
Example:
"Yes, all customer data is encrypted at rest with AES-256."
Tags used to categorize and search this manual answer.
Example:
["encryption", "security"]
Questionnaire this answer was originally saved from.
Example:
"qst_abc123"
Response
200
Manual answer saved
Was this page helpful?

