Skip to content
Skip to Content
Coder Docs

Get deployment DAUs

GET
/api/v2/insights/daus

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Query Parameters

tz_offset*integer

Time-zone offset (e.g. -2)

Response Body

OK

application/json
  1. response
entries?array<>
tz_hour_offset?integer

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

curl -X GET \	"$CODER_URL/api/v2/insights/daus?tz_offset={tz_offset}" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "entries": [    {      "amount": 0,      "date": "string"    }  ],  "tz_hour_offset": 0}