Create and manage Zendesk macros via the REST API for automated agent-facing response templates

domain: zendesk.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. GET /api/v2/macros to list existing macros; use query parameters 'active=true' and 'access=personal' or 'shared' to filter scope.
  2. POST to /api/v2/macros with a JSON body under 'macro' containing 'title', 'actions' (array of action objects with 'field' and 'value'), and optionally 'restriction' for shared vs. personal scope.
  3. Each action specifies a field to set when the macro is applied (e.g., {'field': 'status', 'value': 'solved'} or {'field': 'comment_value', 'value': 'Thank you for contacting us.'}).
  4. To apply a macro to a ticket, POST to /api/v2/tickets/{ticket_id}/macros/{macro_id}/apply and inspect the 'result' in the response to preview the changes before committing them.
  5. Commit the applied changes by then PUTting the result's ticket diff back via the standard ticket update endpoint — applying a macro via API is a preview step, not an automatic commit.
  6. Update a macro with PUT /api/v2/macros/{macro_id}; delete with DELETE /api/v2/macros/{macro_id}.

Known gotchas

Related routes

Manage Zendesk SLA policies via the REST API
developer.zendesk.com · 6 steps · unrated
Create and reply to Zendesk tickets via API
zendesk.com · 4 steps · unrated
scaffold and preview a Zendesk support app using the Apps Framework (ZAF) and iframe Client API
zendesk.com · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans