curl --request GET \
--url https://api.dappier.com/v1/analytics/ask-ai/logs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dappier.com/v1/analytics/ask-ai/logs"
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/ask-ai/logs', 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/ask-ai/logs",
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/ask-ai/logs"
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/ask-ai/logs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dappier.com/v1/analytics/ask-ai/logs")
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{
"data": [
{
"timestamp": "2026-05-18T09:14:22Z",
"widget_id": "wd_92831",
"placement_id": "pl_abc",
"deployment_type": "brand_agent",
"ai_agent": "Acme Support Agent",
"referring_url": "https://example.com/pricing",
"interaction_type": "free_form",
"prompt": "Do you offer annual billing?",
"response": "Yes — annual plans include a 20% discount..."
}
],
"total_pages": 12,
"count": 573,
"meta": {
"timezone": "UTC",
"generated_at": "2026-05-18T09:20: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"
}Ask AI Logs
Raw, paginated Ask AI conversation log rows — the same data the internal Logs → Ask AI dashboard table serves. Use this for record-level inspection; use Ask AI Analytics for aggregate reporting. Results are sorted newest-first by timestamp.
curl --request GET \
--url https://api.dappier.com/v1/analytics/ask-ai/logs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dappier.com/v1/analytics/ask-ai/logs"
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/ask-ai/logs', 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/ask-ai/logs",
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/ask-ai/logs"
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/ask-ai/logs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dappier.com/v1/analytics/ask-ai/logs")
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{
"data": [
{
"timestamp": "2026-05-18T09:14:22Z",
"widget_id": "wd_92831",
"placement_id": "pl_abc",
"deployment_type": "brand_agent",
"ai_agent": "Acme Support Agent",
"referring_url": "https://example.com/pricing",
"interaction_type": "free_form",
"prompt": "Do you offer annual billing?",
"response": "Yes — annual plans include a 20% discount..."
}
],
"total_pages": 12,
"count": 573,
"meta": {
"timezone": "UTC",
"generated_at": "2026-05-18T09:20: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. page must be ≥ 1; limit defaults to 50 and is clamped to a hard max of 500 (larger values are silently reduced). When interaction_type is omitted the service defaults to free_form, automated_followup, and search.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-05-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-05-18"
Filter to one widget. Omit for all widgets the account owns.
"wd_92831"
Filter to one placement.
Filter by deployment type (exact match).
"brand_agent"
Single value. When omitted, the service defaults to free_form, automated_followup, and search.
"free_form"
1-based page number. Must be ≥ 1.
x >= 11
Page size. Hard max 500 — larger values are clamped down.
x <= 500100

