curl --request GET \
--url https://api.dappier.com/v1/analytics/sponsored-conversations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dappier.com/v1/analytics/sponsored-conversations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dappier.com/v1/analytics/sponsored-conversations', 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://api.dappier.com/v1/analytics/sponsored-conversations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dappier.com/v1/analytics/sponsored-conversations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dappier.com/v1/analytics/sponsored-conversations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dappier.com/v1/analytics/sponsored-conversations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"filters": {
"start_date": "2026-04-01",
"end_date": "2026-04-30",
"campaign_id": "cp_xxx",
"agent_id": "<string>",
"placement_id": "<string>",
"prompt_id": "<string>",
"creative_id": "<string>",
"line_item_id": "<string>",
"publisher_id": "<string>"
},
"summary": {
"impressions": 36470,
"queries": 7900,
"sessions": 2820,
"engagement_rate": 280.14,
"avg_session_duration_seconds": 182,
"total_clicks": 1282,
"article_clicks": 312,
"cta_clicks": 970,
"conversion_rate": 45.46,
"avg_queries_per_session": 2.8
},
"daily_breakdown": [
{
"date": "2026-04-29",
"queries": 248,
"engagement_rate": 21.4,
"total_clicks": 31
}
],
"campaign_breakdown": [
{
"campaign_id": "cp_xxx",
"campaign_name": "StateFarm Q2",
"creative_ids": [
"391487",
"391840"
],
"impressions": 12000,
"queries": 2500,
"total_clicks": 320,
"engagement_rate": 20.8
}
],
"prompt_breakdown": [
{
"prompt_id": "",
"prompt_text": "Tell me more about coverage",
"impressions": 8200,
"queries": 1900,
"engagement_rate": 23.2
}
],
"click_type_breakdown": [
{
"type": "sponsored_cta_click",
"count": 970
}
],
"meta": {
"timezone": "UTC",
"generated_at": "2026-05-11T18:45:00Z"
}
}{
"message": "end_date must be on or after start_date"
}{
"message": "end_date must be on or after start_date"
}{
"message": "end_date must be on or after start_date"
}{
"message": "rate limit exceeded"
}Sponsored Conversations Analytics
Advertiser-facing rollup for the campaigns the API key’s tenant owns: summary KPIs, daily timeline, plus per-campaign, per-prompt, and click-type breakdowns. Numbers match the Dappier platform dashboard for the same filters.
curl --request GET \
--url https://api.dappier.com/v1/analytics/sponsored-conversations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dappier.com/v1/analytics/sponsored-conversations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dappier.com/v1/analytics/sponsored-conversations', 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://api.dappier.com/v1/analytics/sponsored-conversations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dappier.com/v1/analytics/sponsored-conversations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dappier.com/v1/analytics/sponsored-conversations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dappier.com/v1/analytics/sponsored-conversations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"filters": {
"start_date": "2026-04-01",
"end_date": "2026-04-30",
"campaign_id": "cp_xxx",
"agent_id": "<string>",
"placement_id": "<string>",
"prompt_id": "<string>",
"creative_id": "<string>",
"line_item_id": "<string>",
"publisher_id": "<string>"
},
"summary": {
"impressions": 36470,
"queries": 7900,
"sessions": 2820,
"engagement_rate": 280.14,
"avg_session_duration_seconds": 182,
"total_clicks": 1282,
"article_clicks": 312,
"cta_clicks": 970,
"conversion_rate": 45.46,
"avg_queries_per_session": 2.8
},
"daily_breakdown": [
{
"date": "2026-04-29",
"queries": 248,
"engagement_rate": 21.4,
"total_clicks": 31
}
],
"campaign_breakdown": [
{
"campaign_id": "cp_xxx",
"campaign_name": "StateFarm Q2",
"creative_ids": [
"391487",
"391840"
],
"impressions": 12000,
"queries": 2500,
"total_clicks": 320,
"engagement_rate": 20.8
}
],
"prompt_breakdown": [
{
"prompt_id": "",
"prompt_text": "Tell me more about coverage",
"impressions": 8200,
"queries": 1900,
"engagement_rate": 23.2
}
],
"click_type_breakdown": [
{
"type": "sponsored_cta_click",
"count": 970
}
],
"meta": {
"timezone": "UTC",
"generated_at": "2026-05-11T18:45:00Z"
}
}{
"message": "end_date must be on or after start_date"
}{
"message": "end_date must be on or after start_date"
}{
"message": "end_date must be on or after start_date"
}{
"message": "rate limit exceeded"
}X-RateLimit-* headers are returned, 429 with Retry-After when exceeded) and cached server-side for up to 30 minutes (send Cache-Control: no-cache to skip the cache read; the X-Cache response header reports HIT, MISS, BYPASS, or DISABLED).start_date or end_date is omitted, both default to the trailing 7-day window ending today UTC. Explicit ranges must be ≤ 365 days. agent_id is validated against the key’s tenant — an unknown or other-tenant id returns 400 agent_id not found.creative_id / line_item_id / publisher_id reflect DSP ad-render values (the creative that matched the campaign and triggered the SC), snapshotted at SC entry and frozen for the SC lifetime. publisher_id is absent on GAM-derived events (GAM has no per-impression publisher id) — only Dianomi-served events carry it, so filtering by publisher_id scopes to Dianomi-derived traffic only. prompt_breakdown is grouped by prompt text and includes user-typed follow-ups (impressions == 0, queries > 0); filter client-side to impressions > 0 for configured prompts only.Authorizations
Bearer token authentication using your Dappier API key. Get your API key at https://platform.dappier.com/profile/api-keys.
Query Parameters
Inclusive start of the analytics window, formatted YYYY-MM-DD (UTC). Optional — if either start_date or end_date is omitted, both default to the trailing 7-day window ending today_UTC (i.e., start_date = today_UTC - 6).
"2026-04-01"
Inclusive end of the analytics window, formatted YYYY-MM-DD (UTC). Optional — if either start_date or end_date is omitted, both default to the trailing 7-day window ending today_UTC. Must be on or after start_date; the total range must be ≤ 365 days.
"2026-04-30"
External campaign id (e.g. cp_...).
"cp_xxx"
AI model external id (e.g. am_...). Validated against the tenant — an unknown or other-tenant id returns 400 agent_id not found.
"am_01j06ytn18ejftedz6dyhz2b15"
External placement id.
External prompt id (e.g. pm_...).
DSP-served ad creative id (GAM/Dianomi) that triggered the sponsored conversation.
"391487"
DSP-served line item id.
Publisher id. Present on Dianomi-served events only — filtering by this scopes results to Dianomi-derived traffic.
Response
Sponsored-conversation rollup for the requested window and filters.
Always true for a 200 response.
true
Echoes back only the filters you supplied in the request.
Show child attributes
Show child attributes
Rollup for the window. Internally self-consistent; percentages rounded to 2 decimals.
Show child attributes
Show child attributes
Mirrors the dashboard "Performance Timeline".
Show child attributes
Show child attributes
Per-campaign rollup, sorted by impressions desc. creative_ids is the list of DSP creative IDs configured on the campaign (from campaign setup, not per-event data) — use it to cross-reference your DSP/ad-server reports.
Show child attributes
Show child attributes
Top rows by engagement, grouped by prompt text (not prompt id). Configured sponsored prompts appear with impressions > 0; user-typed follow-ups inside the SC appear with impressions == 0 and queries > 0. prompt_id is currently always "" (reserved for a future release).
Show child attributes
Show child attributes
One entry per click type present.
Show child attributes
Show child attributes
Show child attributes
Show child attributes

