Skip to main content
GET
Widget Analytics
Returns KPIs for the selected window, the previous period for comparison, daily time series, and top referrers/countries.

Authentication

Requires a Bearer token (API key) or a dashboard session.

Path Parameters

string
required
The widget config UUID.

Query Parameters

string
default:"30d"
Reporting window: 7d, 30d, or 90d.

Response

string
The window that was applied.
object
total_sessions, total_leads, total_messages, conversion_rate, avg_session_duration_seconds, avg_messages_per_session, identified_sessions, anonymous_sessions.
object
The same KPI shape for the immediately preceding period.
object
Daily time series: sessions, leads, messages, each an array of { day, count }.
array
Up to 10 { url, count } entries.
array
Up to 10 { country, count } entries.
array
Map-ready { country, name, lat, lng, count } entries for the top countries.

Example

curl