List task templates
Lists the active task templates (checklists) of a department.
GET https://cotlet.dev/api/v1/breezeway/templates
read
Returns each active template with its ID, name and department. The template ID goes into create_task. Templates are created in the app, under Settings > Tasks > Templates.
Parameters
| Name | Type | Description |
|---|---|---|
| department string | string | One of housekeeping, inspection, maintenance, safety. Omit for all. |
Request
curl https://cotlet.dev/api/v1/breezeway/templates \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("breezeway", "list_templates") const result = await cotlet.call('breezeway', 'list_templates'); cotlet call breezeway list_templates Example response
{
"templates": [
{
"template_id": 27,
"name": "Default Inspection",
"department": "inspection"
},
{
"template_id": 31,
"name": "Plumbing issue",
"department": "maintenance"
}
]
}