Template Type "Search Result Page"



I'm trying to build a new integration and would like to post a template via https://developers.hubspot.com/docs/methods/templates/post_templates

When creating a new template I can pick Template Type > System > Search Result Page. I would like to post that via the API (https://developers.hubspot.com/docs/methods/templates/post_templates). None of these numbers seem to correspond to that template type. Could you please let me know which number I must use?

Thank you and kind regards,


Hey David!

The template type for any specific template can be found using this endpoint: https://developers.hubspot.com/docs/methods/templates/get_templates

I created a search template, then ran the above endpoint to determine that search result templates have the template type of "27". That should work for you when running your POST.


Hi Leif, thank you! Will try that out, I appreciate your swift help.