curl --request POST \
--url https://app.demand-iq.com/api/qa \
--header 'Content-Type: application/json' \
--data '
{
"question": "<string>",
"slideId": "<string>",
"deckId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"presentationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"history": [
{
"content": "<string>"
}
],
"voiceId": "<string>",
"language": "en"
}
'import requests
url = "https://app.demand-iq.com/api/qa"
payload = {
"question": "<string>",
"slideId": "<string>",
"deckId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"presentationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"history": [{ "content": "<string>" }],
"voiceId": "<string>",
"language": "en"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
question: '<string>',
slideId: '<string>',
deckId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
presentationId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
history: [{content: '<string>'}],
voiceId: '<string>',
language: 'en'
})
};
fetch('https://app.demand-iq.com/api/qa', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.demand-iq.com/api/qa",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'question' => '<string>',
'slideId' => '<string>',
'deckId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'presentationId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'history' => [
[
'content' => '<string>'
]
],
'voiceId' => '<string>',
'language' => 'en'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.demand-iq.com/api/qa"
payload := strings.NewReader("{\n \"question\": \"<string>\",\n \"slideId\": \"<string>\",\n \"deckId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"presentationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"history\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"voiceId\": \"<string>\",\n \"language\": \"en\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.demand-iq.com/api/qa")
.header("Content-Type", "application/json")
.body("{\n \"question\": \"<string>\",\n \"slideId\": \"<string>\",\n \"deckId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"presentationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"history\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"voiceId\": \"<string>\",\n \"language\": \"en\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.demand-iq.com/api/qa")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"question\": \"<string>\",\n \"slideId\": \"<string>\",\n \"deckId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"presentationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"history\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"voiceId\": \"<string>\",\n \"language\": \"en\"\n}"
response = http.request(request)
puts response.read_body{
"answer": "<string>",
"audioUrl": "<string>",
"source": "faq",
"wordTimings": [
{
"word": "<string>",
"startTime": 123,
"endTime": 123
}
],
"relatedSlideId": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Answer a question
Answers a viewer question. Checks FAQs first (exact then semantic match at >= 0.6 confidence), falls back to GPT-4o with slide context. Returns answer text plus synthesized audio.
deckId and presentationId must be valid UUIDs; other values are rejected with a 400. When a presentationId is provided, the answer is drawn from the deck that presentation belongs to; the body’s deckId is used only as a fallback when that deck has been deleted. If slideId doesn’t match a slide in the deck, the question is answered without slide context instead of failing.
Authentication: Accepts either a session cookie (admin) or a presentationId (public viewer).
curl --request POST \
--url https://app.demand-iq.com/api/qa \
--header 'Content-Type: application/json' \
--data '
{
"question": "<string>",
"slideId": "<string>",
"deckId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"presentationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"history": [
{
"content": "<string>"
}
],
"voiceId": "<string>",
"language": "en"
}
'import requests
url = "https://app.demand-iq.com/api/qa"
payload = {
"question": "<string>",
"slideId": "<string>",
"deckId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"presentationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"history": [{ "content": "<string>" }],
"voiceId": "<string>",
"language": "en"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
question: '<string>',
slideId: '<string>',
deckId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
presentationId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
history: [{content: '<string>'}],
voiceId: '<string>',
language: 'en'
})
};
fetch('https://app.demand-iq.com/api/qa', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.demand-iq.com/api/qa",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'question' => '<string>',
'slideId' => '<string>',
'deckId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'presentationId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'history' => [
[
'content' => '<string>'
]
],
'voiceId' => '<string>',
'language' => 'en'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.demand-iq.com/api/qa"
payload := strings.NewReader("{\n \"question\": \"<string>\",\n \"slideId\": \"<string>\",\n \"deckId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"presentationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"history\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"voiceId\": \"<string>\",\n \"language\": \"en\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.demand-iq.com/api/qa")
.header("Content-Type", "application/json")
.body("{\n \"question\": \"<string>\",\n \"slideId\": \"<string>\",\n \"deckId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"presentationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"history\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"voiceId\": \"<string>\",\n \"language\": \"en\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.demand-iq.com/api/qa")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"question\": \"<string>\",\n \"slideId\": \"<string>\",\n \"deckId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"presentationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"history\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"voiceId\": \"<string>\",\n \"language\": \"en\"\n}"
response = http.request(request)
puts response.read_body{
"answer": "<string>",
"audioUrl": "<string>",
"source": "faq",
"wordTimings": [
{
"word": "<string>",
"startTime": 123,
"endTime": 123
}
],
"relatedSlideId": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Body
3Current slide ID for context. Accepts a slide UUID or a legacy semantic ID such as slide-1.
1 - 100Deck to answer from. Ignored when presentationId is provided — the deck is resolved from the presentation, and this value is used only as a fallback if that deck has been deleted.
Required for unauthenticated viewer access
Show child attributes
Show child attributes
BCP-47 language tag
"en"