Median

GET /analytics/activity

Updated Oct 1, 20261 minute read

Team activity

Everything the agent and the team did that writes a log line, per day, with the busiest kinds of work named.

Part of Analytics.

Parameters

NameInTypeRequiredDescription
fromqueryintegerNoThe window's start, unix ms. Defaults to days ago.
daysquery7 | 30 | 90NoDaily buckets after from. Default 30.

Responses

StatusDescription
200The window, bucketed by day.
400The request is malformed, and the message names the field.
401The bearer token is missing, revoked, or expired.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
perDayinteger[]No
totalintegerNo
byActionobject[]No
byAction[].actionstringNo
byAction[].countintegerNo
cappedbooleanNo

Example request

curl https://api.median.sh/v1/analytics/activity \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc