Question
How can I export all the macros of my account into a file?
Answer
There isn't an out-of-the-box feature that allows you to pull a list of all your macros. However, you can use the API endpoint List Macros to retrieve all shared and personal macros available to the current user. Admins can retrieve any macro on the account regardless of who created it.
To retrieve personal and active macros, use the following code snippet:
api/v2/macros.json?access=personal&active=true
Alternatively, to retrieve all macros on the account, use this code snippet:
api/v2/macros.json?access=account
To append any of the code snippets to a URL:
- Sign in to your Zendesk account
-
In the URL of your browser, after
mycompany.zendesk.com
, add any of the code snippets replacingmycompany
with your account subdomain. For example:mycompany.zendesk.com/api/v2/macros.json?access=personal&active=true
- Press Enter to display a list of active personal macros available to the user
Tip: Vladan Jovic, one of Zendesk Community Moderators, created the following tutorial on how to export Zendesk macros into a spreadsheet that uses the API referred to above.