List macros
Your macros with name, text and the actions each one runs.
GET https://cotlet.dev/api/v1/gorgias/macros
read
Returns macros in the order Gorgias lists them, with their reply text and actions such as add tags, set status, assign a team or set priority. Archived macros are included only when you ask. Every role can read the list.
Parameters
| Name | Type | Description |
|---|---|---|
| query string | string | Words to search for in the macro name or text. |
| include_archived boolean | boolean | Default: false. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/gorgias/macros \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("gorgias", "list_macros") const result = await cotlet.call('gorgias', 'list_macros'); cotlet call gorgias list_macros Example response
{
"macros": [
{
"macro_id": 3018,
"name": "Order status",
"actions": [
"Add tags",
"Set status"
],
"archived": false,
"preview": "Hi {{ticket.customer.firstname}}, your order is on its way..."
}
],
"next_cursor": null
}