Skip to main content
POST
/
api
/
qa
Ask a question
curl --request POST \
  --url https://app.demandiq.com/api/qa \
  --header 'Content-Type: application/json' \
  --data '
{
  "question": "How long does solar panel installation take?",
  "slideId": "<string>",
  "history": [
    {
      "role": "user",
      "content": "<string>"
    }
  ],
  "voiceId": "<string>",
  "deckId": "<string>",
  "presentationId": "<string>",
  "language": "en"
}
'
{
  "answer": "<string>",
  "audioUrl": "<string>",
  "wordTimings": [
    {
      "word": "<string>",
      "startTime": 123,
      "endTime": 123
    }
  ],
  "source": "faq",
  "relatedSlideId": "<string>"
}

Body

application/json
question
string
required
Minimum string length: 3
Example:

"How long does solar panel installation take?"

slideId
string
required
history
object[]
voiceId
string
deckId
string

Required for authenticated admin access

presentationId
string

Required for public access

language
string
Example:

"en"

Response

Answer

answer
string
audioUrl
string
wordTimings
object[]
source
enum<string>
Available options:
faq,
cached,
openai,
fallback