curl -G "https://backend.botcadence.com/organizations/ORG_ID/analytics" \
-H "Authorization: Bearer bot_live_YOUR_KEY" \
--data-urlencode "start_date=2026-07-01T00:00:00Z" \
--data-urlencode "end_date=2026-07-22T23:59:59Z" \
--data-urlencode "channel_type=web"
const params = new URLSearchParams({
start_date: "2026-07-01T00:00:00Z",
end_date: "2026-07-22T23:59:59Z",
channel_type: "web",
});
const response = await fetch(
`https://backend.botcadence.com/organizations/${organizationId}/analytics?${params}`,
{ headers: { "Authorization": `Bearer ${process.env.BOTCADENCE_API_KEY}` } }
);
import os
import requests
response = requests.get(
f"https://backend.botcadence.com/organizations/{organization_id}/analytics",
headers={"Authorization": f"Bearer {os.environ['BOTCADENCE_API_KEY']}"},
params={
"start_date": "2026-07-01T00:00:00Z",
"end_date": "2026-07-22T23:59:59Z",
"channel_type": "web",
},
)
{
"status": "success",
"message": "Organization analytics retrieved successfully",
"data": {
"tickets": 48,
"leads": 120,
"messages": 1840,
"user_engagement": [
{ "label": "Jul 01", "count": 62 },
{ "label": "Jul 02", "count": 71 }
],
"session_growth": [
{ "label": "Jul 01", "count": 8 },
{ "label": "Jul 02", "count": 11 }
],
"lead_generation": [
{ "label": "Jul 01", "count": 8 },
{ "label": "Jul 02", "count": 11 }
],
"group_by": "daily"
},
"status_code": 200
}
Analytics
Get organization analytics
Retrieve chat insight analytics for an organization
GET
/
organizations
/
{organization_id}
/
analytics
curl -G "https://backend.botcadence.com/organizations/ORG_ID/analytics" \
-H "Authorization: Bearer bot_live_YOUR_KEY" \
--data-urlencode "start_date=2026-07-01T00:00:00Z" \
--data-urlencode "end_date=2026-07-22T23:59:59Z" \
--data-urlencode "channel_type=web"
const params = new URLSearchParams({
start_date: "2026-07-01T00:00:00Z",
end_date: "2026-07-22T23:59:59Z",
channel_type: "web",
});
const response = await fetch(
`https://backend.botcadence.com/organizations/${organizationId}/analytics?${params}`,
{ headers: { "Authorization": `Bearer ${process.env.BOTCADENCE_API_KEY}` } }
);
import os
import requests
response = requests.get(
f"https://backend.botcadence.com/organizations/{organization_id}/analytics",
headers={"Authorization": f"Bearer {os.environ['BOTCADENCE_API_KEY']}"},
params={
"start_date": "2026-07-01T00:00:00Z",
"end_date": "2026-07-22T23:59:59Z",
"channel_type": "web",
},
)
{
"status": "success",
"message": "Organization analytics retrieved successfully",
"data": {
"tickets": 48,
"leads": 120,
"messages": 1840,
"user_engagement": [
{ "label": "Jul 01", "count": 62 },
{ "label": "Jul 02", "count": 71 }
],
"session_growth": [
{ "label": "Jul 01", "count": 8 },
{ "label": "Jul 02", "count": 11 }
],
"lead_generation": [
{ "label": "Jul 01", "count": 8 },
{ "label": "Jul 02", "count": 11 }
],
"group_by": "daily"
},
"status_code": 200
}
Returns organization-level chat analytics: ticket, lead, and message totals, plus time-series engagement series.
Authentication
Path parameters
Query parameters
Response
Bucket size used for series:
daily, weekly, monthly, or yearly (chosen from the date range).Errors
curl -G "https://backend.botcadence.com/organizations/ORG_ID/analytics" \
-H "Authorization: Bearer bot_live_YOUR_KEY" \
--data-urlencode "start_date=2026-07-01T00:00:00Z" \
--data-urlencode "end_date=2026-07-22T23:59:59Z" \
--data-urlencode "channel_type=web"
const params = new URLSearchParams({
start_date: "2026-07-01T00:00:00Z",
end_date: "2026-07-22T23:59:59Z",
channel_type: "web",
});
const response = await fetch(
`https://backend.botcadence.com/organizations/${organizationId}/analytics?${params}`,
{ headers: { "Authorization": `Bearer ${process.env.BOTCADENCE_API_KEY}` } }
);
import os
import requests
response = requests.get(
f"https://backend.botcadence.com/organizations/{organization_id}/analytics",
headers={"Authorization": f"Bearer {os.environ['BOTCADENCE_API_KEY']}"},
params={
"start_date": "2026-07-01T00:00:00Z",
"end_date": "2026-07-22T23:59:59Z",
"channel_type": "web",
},
)
{
"status": "success",
"message": "Organization analytics retrieved successfully",
"data": {
"tickets": 48,
"leads": 120,
"messages": 1840,
"user_engagement": [
{ "label": "Jul 01", "count": 62 },
{ "label": "Jul 02", "count": 71 }
],
"session_growth": [
{ "label": "Jul 01", "count": 8 },
{ "label": "Jul 02", "count": 11 }
],
"lead_generation": [
{ "label": "Jul 01", "count": 8 },
{ "label": "Jul 02", "count": 11 }
],
"group_by": "daily"
},
"status_code": 200
}

