Skip to content
Skip to Content
Coder Docs

Get template examples

GET
/api/v2/templates/examples

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Response Body

OK

application/json
  1. response
[index: integer]?

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

curl -X GET \	"$CODER_URL/api/v2/templates/examples" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
[  {    "description": "string",    "icon": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "markdown": "string",    "name": "string",    "tags": [      "string"    ],    "url": "string"  }]