Get the overview
The dashboard’s headline numbers: open conversations, this week against last, satisfaction over the last 30 days, and open signals.
GET
/analytics/overviewAuthorization
AuthorizationBearer token · headerrequired`MEDIAN_KEY` from Settings under API, or an MCP OAuth access token. A key acts as the organization; a token acts as the person who approved it.
Query parameters
nowintegerUnix ms to anchor the windows on. Defaults to the server's clock.
Responses
200The numbers.
openConversationsintegeropenCappedbooleanthisWeekintegerlastWeekintegerweekByDayinteger[]csatAveragenumber | nullcsatCountintegeropenSignalsinteger401The bearer token is missing, revoked, or expired.
errorobjectShow propertiesHide properties
codestringmessagestring429Too many requests. Wait the seconds in `Retry-After`. Limits depend on the plan. See [rate limits](/api/errors-and-limits#rate-limits).
errorobjectShow propertiesHide properties
codestringmessagestringRequest
curl -X GET "https://api.median.sh/v1/analytics/overview" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.median.sh/v1/analytics/overview", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});Response
{
"openConversations": 0,
"openCapped": true,
"thisWeek": 0,
"lastWeek": 0,
"weekByDay": [
0
],
"csatAverage": 0,
"csatCount": 0,
"openSignals": 0
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}