Generate answers for a questionnaire | Comp AI API
Starts background answer generation for an already-parsed questionnaire and returns a run handle immediately. Poll GET /v1/questionnaire/:id until.
Documentation Index
Fetch the complete documentation index at: https://www.trycomp.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key for authentication
Path Parameters
Response
The questionnaire whose answers are being generated.
"qst_6a179d26c4ad2c1c816ee16d"
Background run identifier for the generation job (Trigger.dev run id).
"run_cmpotsz153eac0ultc1ya87f5"
Token for tracking the run via Trigger.dev realtime. Optional — MCP/agent clients should poll GET /v1/questionnaire/:id instead.
"pat_..."
Always 'generating' on a successful trigger. Poll GET /v1/questionnaire/:id; answers are ready once answeredQuestions equals totalQuestions.
"generating"
Total number of questions in the questionnaire.
23
Questions already answered at the moment generation was triggered (answers without a value are (re)generated).
0
Human-readable summary of what to do next.
"Generating answers for 23 questions. Poll GET /v1/questionnaire/qst_... until answeredQuestions reaches totalQuestions."

