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
| Name | Type | Description |
|---|---|---|
| ticket_id integer | integer | Only macros that apply to this ticket's group. |
Request
curl https://cotlet.dev/api/v1/zammad/macros \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("zammad", "list_macros") const result = await cotlet.call('zammad', 'list_macros'); cotlet call zammad list_macros Example response
{
"macros": [
{
"name": "Close & Tag as Spam"
},
{
"name": "Hand over to Billing"
}
]
}