List canned responses
Saved replies with title, shortcode, folder and body.
GET https://cotlet.dev/api/v1/freshchat/canned-responses
read
Returns the canned responses your account can use: its personal folders and the shared folders. Each has the title, the shortcode an agent types after "/", the folder and the reply body. Use query to search titles and shortcodes. Freshchat shows the library under Admin > Canned Responses.
Parameters
| Name | Type | Description |
|---|---|---|
| query string | string | Text to find in titles and shortcodes. |
Request
curl https://cotlet.dev/api/v1/freshchat/canned-responses \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("freshchat", "list_canned_responses") const result = await cotlet.call('freshchat', 'list_canned_responses'); cotlet call freshchat list_canned_responses Example response
{
"canned_responses": [
{
"title": "How to change a password",
"shortcode": "pswd",
"folder": "Account (shared)",
"body": "To change your password open Settings, choose Security and click Reset password."
},
{
"title": "Where is my invoice",
"shortcode": "invoice",
"folder": "Billing (shared)",
"body": "You can download invoices under Billing > History."
}
]
}