← Back to API Reference overview

Analytics Dashboard

Endpoints for managing analytics dashboards with flexible, config-driven widgets. Each widget defines its own data source and visualization.

Shortcut: ⌘K

#The ChatDisplayMessage is a user-visible chat message for rendering in the UI object

ChatDisplayMessage is a user-visible chat message for rendering in the UI

id

string

sender

string

"user" or "assistant"

text

string

timestamp

string (date-time)
GET/v1/analytics/dashboardsRequires auth

#List analytics dashboards

#Parameters

query parameters

linkId

stringquery

Restricts the result to the dashboard scoped to this link. Takes precedence over scope when both are set.

scope

stringquery

Restricts the result by scope. Unset returns every dashboard.

Allowed values
DASHBOARD_SCOPE_UNSPECIFIED

Every dashboard in the workspace, link-scoped or not.

DASHBOARD_SCOPE_WORKSPACE

Only the workspace-wide dashboard, the one with no link.

DASHBOARD_SCOPE_LINK

Only dashboards tied to a link.

#Response

200

Everything worked as expected.

dashboards

array<object>

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

objectRequired

Wrapped error response.

GET/v1/analytics/dashboards/{dashboardId}/widgets/{widgetId}/summaryRequires auth

#Get a stored widget agent summary

Returns the last generated analysis, and whether the underlying values have changed since.

#Parameters

path parameters

dashboardId

stringRequiredpath

widgetId

stringRequiredpath

#Response

200

Everything worked as expected.

result

object

AnalyticsWidgetResult is a generated result for an on-demand widget tab.

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

objectRequired

Wrapped error response.

POST/v1/analytics/dashboardsRequires auth

#Create analytics dashboard

#Parameters

This endpoint does not accept any parameters.

#Request body

config

object

DashboardConfig is the structured configuration for a dashboard

id

string

Client-supplied dashboard id. Generated server-side when empty.

linkId

string

Link to scope this dashboard to. Empty creates the workspace-wide dashboard.

name

string

Display name. Defaults to "Default Dashboard" when empty.

useDefaultWidgets

boolean

Fill a workspace dashboard with the standard starter widgets instead of leaving it empty. For the first dashboard in a workspace, which is created by one click rather than by a conversation. Ignored when config is set or when link_id is set, and hidden from the agent, which agrees its widgets with the user and would otherwise stack them on top of these.

#Response

200

Everything worked as expected.

dashboard

object

AnalyticsDashboard represents a workspace's analytics dashboard

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

objectRequired

Wrapped error response.

POST/v1/analytics/dashboards/{dashboardId}/widgets/{widgetId}/summaryRequires auth

#Generate a widget agent summary

Analyses the widget's current values and stores the result. Consumes platform credits, so it runs only when requested.

#Parameters

path parameters

dashboardId

stringRequiredpath

Dashboard holding the widget

widgetId

stringRequiredpath

Widget whose values should be analysed

#Request body

force

boolean

Regenerate even when the stored result is still current

#Response

200

Everything worked as expected.

result

object

AnalyticsWidgetResult is a generated result for an on-demand widget tab.

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

objectRequired

Wrapped error response.

PUT/v1/analytics/dashboards/{id}Requires auth

#Update analytics dashboard

#Parameters

path parameters

id

stringRequiredpath

ID of the dashboard to update.

#Request body

config

object

DashboardConfig is the structured configuration for a dashboard

name

string

#Response

200

Everything worked as expected.

dashboard

object

AnalyticsDashboard represents a workspace's analytics dashboard

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

objectRequired

Wrapped error response.

DELETE/v1/analytics/dashboards/{id}Requires auth

#Delete analytics dashboard

Delete a dashboard and its associated agent conversation.

#Parameters

path parameters

id

stringRequiredpath

#Response

200

Everything worked as expected.

No structured schema available for this section.

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

objectRequired

Wrapped error response.