Skip to content
Skip to Content
Coder Docs

Get template DAUs by ID

GET
/api/v2/templates/{template}/daus

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

template*string

Template ID

Formatuuid

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/templates/{template}/daus" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "entries": [    {      "amount": 0,      "date": "string"    }  ],  "tz_hour_offset": 0}