Workspace summary

Returns workspace-wide analytics totals and trend breakdowns for a selected period. Use it to power overview dashboards and reporting views.
https://api.unipost.dev
GET/v1/analytics/summary?{from}&{to}&{granularity}
Authorization
In header ยท Bearer <token>
Query

Authorization

AuthorizationBearer <token>In header
Workspace API key.

Query Params

from?string
Period start in ISO-8601 format.
to?string
Period end in ISO-8601 format.
granularity?string
Time bucket for trend rows.
Valuesday | week | month

Response Body

200
totalsobject
Workspace-wide totals across the selected period.
totals.impressionsnumber
Normalized impressions total.
trendarray
Time-series points for charting.
by_platformarray
Breakdown by destination network.
401
error.codestring
Usually "UNAUTHORIZED".
error.normalized_codestring
Lowercase alias such as "unauthorized".
error.messagestring
Human-readable error message.
request_idstring
Request identifier for debugging and support.
422
error.codestring
Usually "UNAUTHORIZED".
error.normalized_codestring
Lowercase alias such as "unauthorized".
error.messagestring
Human-readable error message.
request_idstring
Request identifier for debugging and support.
500
error.codestring
Usually "UNAUTHORIZED".
error.normalized_codestring
Lowercase alias such as "unauthorized".
error.messagestring
Human-readable error message.
request_idstring
Request identifier for debugging and support.