List canned responses
Canned responses with name, folder and text.
GET https://cotlet.dev/api/v1/jitbit/canned-responses
read
Lists the canned responses available to your Jitbit user, with name, folder and body. Responses can be mapped to ticket categories in the admin area, so pass category_id to get the ones that apply to a ticket. Use the body as the text of reply_to_ticket.
Parameters
| Name | Type | Description |
|---|---|---|
| category_id integer | integer | Category ID from list_categories. |
| query string | string | Only responses whose name contains this text. |
Request
curl https://cotlet.dev/api/v1/jitbit/canned-responses \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("jitbit", "list_canned_responses") const result = await cotlet.call('jitbit', 'list_canned_responses'); cotlet call jitbit list_canned_responses Example response
{
"responses": [
{
"response_id": 1420,
"name": "Resend invoice",
"folder": "Billing",
"body": "Hi, the invoice you asked for is attached to this reply."
},
{
"response_id": 362,
"name": "Which app?",
"folder": null,
"body": "Could you tell me which app you are talking about?"
}
]
}