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.

Required string length: 1 - 10000
Example:

"Do you encrypt customer data at rest?"

questionIndex
number
required

Zero-based index of this question in the questionnaire or page batch (at most 9999).

Required range: 0 <= x <= 9999
Example:

0

totalQuestions
number
required

Total number of questions in the current questionnaire or page batch (at most 10000).

Required range: 1 <= x <= 10000
Example:

12

organizationId
string
required

Organization the question batch was generated for, so answers never come from a different workspace. When non-empty, browser sessions get a 409 if it differs from the active organization, and MCP gets a 409 only if it names a different organization the user is an active member of; an empty or other value is ignored. API keys and service tokens always answer from their own organization and ignore this value.

Maximum string length: 64
Example:

"org_abc123"

questionnaireId
string

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

Maximum string length: 64
Example:

"qst_abc123"

Response

Generated single answer result

success
boolean
data
object