Skip to main content

Hi all

 

I’m wanting to pull back when a message originated from a message template via the API - looking at https://dev.frontapp.com/reference/get-message there doesn’t seem to be a field for this, however inside the dashboard under “analytics / Message templates” I can see that this information is available e.g “password reset” template was used 300 times.

Is this same information available via the API?

Thanks!

Hi ​@ianp

Thanks for reaching out about this.

No, there is not currently support for pulling message template analytics via the API. You're correct that this data is aggregated in the Analytics dashboard, but the specific field isn't exposed on individual messages in the API.

However, this is an existing feature request, and I've added a vote on your behalf. Our product team uses this feedback to help prioritize future development.

In the meantime, I can suggest a potential workaround using macros.

A macro could be an easy way to achieve two things at once: apply the message template and tag the conversation.

  • For Conversation-Level Tracking: You can create a macro that 1) applies the message template and 2) adds a specific tag (like "template-password-reset"). This would allow you to use the API to easily fetch all conversations that have used that template by filtering for the tag.
     


     

  • For Message-Level Tracking: If you need to identify the exact message, you can add another step to that same macro to send an event to a webhook. The data sent to your webhook will contain the message_id, allowing you to store a list of specific messages where the templates were used on your end.

     

     

I realize these require some setup and are not as direct as the API functionality you're looking for, but I hope they provide a solid alternative for now.

Thanks again for the valuable feedback!