List canned actions

Canned actions with ID, name and the categories they are defined for.

GET https://cotlet.dev/api/v1/happyfox/canned-actions

read

Lists the canned actions your agent user can use, from Automate >> Canned Actions. A canned action shows in the ticket editor only for categories it is defined for, so the list carries them. Pass canned_action_id to apply_canned_action.

Parameters

Parameters: list_canned_actions
NameTypeDescription
category_id integer integer Only canned actions defined for this category.

Request

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

Example response

JSON

{
  "canned_actions": [
    {
      "canned_action_id": 31,
      "name": "Password reset steps",
      "categories": [
        "Support"
      ]
    },
    {
      "canned_action_id": 44,
      "name": "Invoice copy",
      "categories": [
        "Billing"
      ]
    }
  ]
}

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.