Skip to main content
POST
/
v1
/
questionnaire
/
answer-single
Answer one questionnaire question
curl --request POST \
  --url https://api.trycomp.ai/v1/questionnaire/answer-single \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{}'
{
  "success": true,
  "data": {
    "questionIndex": 123,
    "question": "<string>",
    "answer": "<string>",
    "sources": [
      {}
    ],
    "error": "<string>"
  }
}

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

X-API-Key
string
header
required

API key for authentication

Body

application/json

The body is of type object.

Response

200 - application/json

Generated single answer result

success
boolean
data
object