curl --request POST \
--url https://app.demand-iq.com/api/presentations/{presentationId}/events \
--header 'Content-Type: application/json' \
--data '
{
"_token": "<string>",
"slideId": "<string>",
"slideIndex": 123,
"durationMs": 123,
"skipped": true,
"views": [
{
"slideId": "<string>",
"slideIndex": 123,
"durationMs": 123,
"skipped": true
}
],
"ctaType": "<string>",
"ctaLabel": "<string>",
"ctaUrl": "<string>"
}
'import requests
url = "https://app.demand-iq.com/api/presentations/{presentationId}/events"
payload = {
"_token": "<string>",
"slideId": "<string>",
"slideIndex": 123,
"durationMs": 123,
"skipped": True,
"views": [
{
"slideId": "<string>",
"slideIndex": 123,
"durationMs": 123,
"skipped": True
}
],
"ctaType": "<string>",
"ctaLabel": "<string>",
"ctaUrl": "<string>"
}
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({
_token: '<string>',
slideId: '<string>',
slideIndex: 123,
durationMs: 123,
skipped: true,
views: [{slideId: '<string>', slideIndex: 123, durationMs: 123, skipped: true}],
ctaType: '<string>',
ctaLabel: '<string>',
ctaUrl: '<string>'
})
};
fetch('https://app.demand-iq.com/api/presentations/{presentationId}/events', 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/presentations/{presentationId}/events",
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([
'_token' => '<string>',
'slideId' => '<string>',
'slideIndex' => 123,
'durationMs' => 123,
'skipped' => true,
'views' => [
[
'slideId' => '<string>',
'slideIndex' => 123,
'durationMs' => 123,
'skipped' => true
]
],
'ctaType' => '<string>',
'ctaLabel' => '<string>',
'ctaUrl' => '<string>'
]),
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/presentations/{presentationId}/events"
payload := strings.NewReader("{\n \"_token\": \"<string>\",\n \"slideId\": \"<string>\",\n \"slideIndex\": 123,\n \"durationMs\": 123,\n \"skipped\": true,\n \"views\": [\n {\n \"slideId\": \"<string>\",\n \"slideIndex\": 123,\n \"durationMs\": 123,\n \"skipped\": true\n }\n ],\n \"ctaType\": \"<string>\",\n \"ctaLabel\": \"<string>\",\n \"ctaUrl\": \"<string>\"\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/presentations/{presentationId}/events")
.header("Content-Type", "application/json")
.body("{\n \"_token\": \"<string>\",\n \"slideId\": \"<string>\",\n \"slideIndex\": 123,\n \"durationMs\": 123,\n \"skipped\": true,\n \"views\": [\n {\n \"slideId\": \"<string>\",\n \"slideIndex\": 123,\n \"durationMs\": 123,\n \"skipped\": true\n }\n ],\n \"ctaType\": \"<string>\",\n \"ctaLabel\": \"<string>\",\n \"ctaUrl\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.demand-iq.com/api/presentations/{presentationId}/events")
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 \"_token\": \"<string>\",\n \"slideId\": \"<string>\",\n \"slideIndex\": 123,\n \"durationMs\": 123,\n \"skipped\": true,\n \"views\": [\n {\n \"slideId\": \"<string>\",\n \"slideIndex\": 123,\n \"durationMs\": 123,\n \"skipped\": true\n }\n ],\n \"ctaType\": \"<string>\",\n \"ctaLabel\": \"<string>\",\n \"ctaUrl\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Record a presentation event
Ingests interaction events from the presentation viewer (opens, slide views, CTA clicks). Authenticated via an HMAC token in the request body. Every slide exit is recorded: slide_viewed accepts an optional skipped flag for views under the 2-second skip threshold, and slide_viewed_batch submits up to 25 slide views in one request. Each view in a batch counts against the rate limit individually, so batching reduces requests without raising the effective write cap. The action_detection and action_execution types, and untyped Q&A interaction bodies, are acknowledged with 200 for backward compatibility but are no longer stored.
curl --request POST \
--url https://app.demand-iq.com/api/presentations/{presentationId}/events \
--header 'Content-Type: application/json' \
--data '
{
"_token": "<string>",
"slideId": "<string>",
"slideIndex": 123,
"durationMs": 123,
"skipped": true,
"views": [
{
"slideId": "<string>",
"slideIndex": 123,
"durationMs": 123,
"skipped": true
}
],
"ctaType": "<string>",
"ctaLabel": "<string>",
"ctaUrl": "<string>"
}
'import requests
url = "https://app.demand-iq.com/api/presentations/{presentationId}/events"
payload = {
"_token": "<string>",
"slideId": "<string>",
"slideIndex": 123,
"durationMs": 123,
"skipped": True,
"views": [
{
"slideId": "<string>",
"slideIndex": 123,
"durationMs": 123,
"skipped": True
}
],
"ctaType": "<string>",
"ctaLabel": "<string>",
"ctaUrl": "<string>"
}
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({
_token: '<string>',
slideId: '<string>',
slideIndex: 123,
durationMs: 123,
skipped: true,
views: [{slideId: '<string>', slideIndex: 123, durationMs: 123, skipped: true}],
ctaType: '<string>',
ctaLabel: '<string>',
ctaUrl: '<string>'
})
};
fetch('https://app.demand-iq.com/api/presentations/{presentationId}/events', 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/presentations/{presentationId}/events",
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([
'_token' => '<string>',
'slideId' => '<string>',
'slideIndex' => 123,
'durationMs' => 123,
'skipped' => true,
'views' => [
[
'slideId' => '<string>',
'slideIndex' => 123,
'durationMs' => 123,
'skipped' => true
]
],
'ctaType' => '<string>',
'ctaLabel' => '<string>',
'ctaUrl' => '<string>'
]),
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/presentations/{presentationId}/events"
payload := strings.NewReader("{\n \"_token\": \"<string>\",\n \"slideId\": \"<string>\",\n \"slideIndex\": 123,\n \"durationMs\": 123,\n \"skipped\": true,\n \"views\": [\n {\n \"slideId\": \"<string>\",\n \"slideIndex\": 123,\n \"durationMs\": 123,\n \"skipped\": true\n }\n ],\n \"ctaType\": \"<string>\",\n \"ctaLabel\": \"<string>\",\n \"ctaUrl\": \"<string>\"\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/presentations/{presentationId}/events")
.header("Content-Type", "application/json")
.body("{\n \"_token\": \"<string>\",\n \"slideId\": \"<string>\",\n \"slideIndex\": 123,\n \"durationMs\": 123,\n \"skipped\": true,\n \"views\": [\n {\n \"slideId\": \"<string>\",\n \"slideIndex\": 123,\n \"durationMs\": 123,\n \"skipped\": true\n }\n ],\n \"ctaType\": \"<string>\",\n \"ctaLabel\": \"<string>\",\n \"ctaUrl\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.demand-iq.com/api/presentations/{presentationId}/events")
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 \"_token\": \"<string>\",\n \"slideId\": \"<string>\",\n \"slideIndex\": 123,\n \"durationMs\": 123,\n \"skipped\": true,\n \"views\": [\n {\n \"slideId\": \"<string>\",\n \"slideIndex\": 123,\n \"durationMs\": 123,\n \"skipped\": true\n }\n ],\n \"ctaType\": \"<string>\",\n \"ctaLabel\": \"<string>\",\n \"ctaUrl\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Path Parameters
Body
HMAC authentication token
Event type. action_detection and action_execution are deprecated: they are acknowledged but not stored.
presentation_opened, slide_viewed, slide_viewed_batch, cta_clicked, action_detection, action_execution Whether the viewer left the slide in under 2 seconds. A flag, not a filter: fast flips are still recorded as slide_viewed events.
Slide views to record in one request. Required when type is slide_viewed_batch. Each view counts against the rate limit individually.
25Show child attributes
Show child attributes
Destination URL of an external_link CTA. Send it only on cta_clicked events for that CTA type.
Response
Event recorded