List templates

Reply templates from Settings, Smart Tools, Templates, with text and usage.

GET https://cotlet.dev/api/v1/edesk/templates

read

Lists the templates your account has, from Settings > Smart Tools > Templates. body is the template text with snippets left as written, for example #order_number# and #tracking_code#, so the agent fills them from get_order. Inactive templates are not returned. Templates are read only here: Cotlet does not create or change them.

Parameters

Parameters: list_templates
NameTypeDescription
query string string Only templates whose name contains this text.

Request

cURL
curl https://cotlet.dev/api/v1/edesk/templates \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("edesk", "list_templates")
Node.js
const result = await cotlet.call('edesk', 'list_templates');
CLI
cotlet call edesk list_templates

Example response

JSON

{
  "templates": [
    {
      "template_id": 512,
      "name": "Delivery update",
      "subject": null,
      "body": "Hi #consumer_firstname#, your order #order_number# was dispatched on #dispatched_on#. Tracking code: #tracking_code#.",
      "type": "Consumer"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.