Skip to main content
POST
Answer one questionnaire question

Authorizations

X-API-Key
string
header
required

API key for authentication

Body

application/json
question
string
required

Security questionnaire question to answer.

Example:

"Do you encrypt customer data at rest?"

questionIndex
number
required

Zero-based index of this question in the questionnaire or page batch.

Required range: x >= 0
Example:

0

totalQuestions
number
required

Total number of questions in the current questionnaire or page batch.

Required range: x >= 1
Example:

12

organizationId
string
required

Organization ID for validation. The API uses the authenticated active organization and overwrites this value server-side.

Example:

"org_abc123"

questionnaireId
string

Optional questionnaire record to save the generated answer into. Omit for webpage-only answer generation.

Example:

"qst_abc123"

Response

200 - application/json

Generated single answer result

success
boolean
data
object