Skip to main content
POST
Save questionnaire answer

Authorizations

X-API-Key
string
header
required

API key for authentication

Body

application/json
questionnaireId
string
required

Questionnaire that contains the answer being saved.

Example:

"qst_abc123"

organizationId
string
required

Organization ID. The API overwrites this with the authenticated active organization.

Example:

"org_abc123"

status
enum<string>
required

Whether the answer was AI-generated or written by a person.

Available options:
generated,
manual
Example:

"manual"

questionAnswerId
string

Question/answer record to update. Provide this or questionIndex.

Example:

"qqa_abc123"

questionIndex
number

Zero-based position of the question in the questionnaire. Provide this or questionAnswerId.

Required range: x >= 0
Example:

0

answer
string | null

Answer text to store. Send null or empty to clear it.

Example:

"Yes, all customer data is encrypted at rest with AES-256."

sources
object[]

Knowledge sources the answer was derived from.

Response

200 - application/json

Save manual or generated answer

success
boolean
error
string | null