It seems that with the API, macros can only be applied to existing tickets. I'm trying to set up a process where a ticket gets created with a macro already applied (the macro includes a comment template, which I would like to be the first comment of the ticket). This can be done manually through the Zendesk portal, but is there a way to do this through the API in the create ticket POST request?
Thanks for the help!


Thanks for reaching out!
To apply a macro to a new ticket, you will first need to call the
GET /api/v2/macros/{macro_id}/applyendpoint which will return the changes the macro would make to a ticket. You'd then extract those changes and include them in the request to thePOST /api/v2/ticketsendpoint when creating the ticket. Here's a link to the docs which goes in to a bit more detail:- Macro API - Show changes to ticket
I hope this helps! Feel free to reach out with any questions.Tipene