List macros

Macros your account can run on a ticket, such as Close & Tag as Spam.

GET https://cotlet.dev/api/v1/zammad/macros

read

Returns the names of the macros in the ticket's Update menu. Admins create macros under Manage > Macros and limit each to groups, so pass ticket_id to see the ones that fit that ticket. Zammad ships Close & Tag as Spam, which makes you the owner, adds the tag spam and closes the ticket.

Parameters

Parameters: list_macros
NameTypeDescription
ticket_id integer integer Only macros that apply to this ticket's group.

Request

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

Example response

JSON

{
  "macros": [
    {
      "name": "Close & Tag as Spam"
    },
    {
      "name": "Hand over to 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.