Skip to content
Skip to Content
Coder Docs

Get insights about user status counts

GET
/api/v2/insights/user-status-counts

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Query Parameters

timezone?string

IANA timezone name (e.g. America/St_Johns)

tz_offset?integer

Deprecated: Time-zone offset (e.g. -2). Use timezone instead.

Response Body

OK

application/json
  1. response
status_counts?

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/insights/user-status-counts" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "status_counts": {    "property1": [      {        "count": 10,        "date": "2019-08-24T14:15:22Z"      }    ],    "property2": [      {        "count": 10,        "date": "2019-08-24T14:15:22Z"      }    ]  }}