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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from | query | integer | No | The window's start, unix ms. Defaults to days ago. |
days | query | 7 | 30 | 90 | No | Daily buckets after from. Default 30. |
Responses
| Status | Description |
|---|---|
200 | The window, bucketed by day. |
400 | The request is malformed, and the message names the field. |
401 | The bearer token is missing, revoked, or expired. |
429 | Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits. |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
perDay | integer[] | No | |
total | integer | No | |
byAction | object[] | No | |
byAction[].action | string | No | |
byAction[].count | integer | No | |
capped | boolean | No |
Example request
curl https://api.median.sh/v1/analytics/activity \
-H "Authorization: Bearer $BEARER_AUTH"