Skip to content
Skip to Content
Coder Docs

Report a template builder session event

POST
/api/v2/templatebuilder/sessions

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Request Body

Session event

application/json
  1. body
base_template_id?string
duration_seconds?number
event_type*string
Value in"wizard_entry""compose_completion"
module_ids?array<string>
session_id*string
Formatuuid
success?boolean

Response Body

No Content

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

curl -X POST \	"$CODER_URL/api/v2/templatebuilder/sessions" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "event_type": "wizard_entry",  "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82"}'
Example Response204
Empty