Is there a way to get the list of email templates via the API without the HTML content? My use case is that I am trying to automate my workflow with AI to create my email templates based on existing templates, however when the model tries to get the list of existing email templates it includes the html content for each template which then consumes far too many tokens and provides a really poor experience for using AI to read and create templates.
Hi @asitha, unfortunately, right now there’s no possibility to deactivate this. The Brevo API always returns the full HTML content when listing templates. There’s currently no way to exclude it. The only workaround is to strip the HTML on the your side after fetching the response, however, I understand this may not be possible. I will, of course, pass this on to our product team for review as I completely understand your use case and believe this could be a valuable addition to the platform.
Feel free to come back with any questions!