Yet another request for HubSpot technical support that dies an early death, without even the dignity of a gravemarker. The "fetch" statement doesn't work but somehow there's only a bunch of dead-end requests for help on that subject. I guess the great resignation has hit HubSpot.
Are you asking about how to get the JSON for an email template that lives in your HubSpot account? If that's the case, you can use the CMS Templates API, which is documented here: https://developers.hubspot.com/docs/methods/templates/get_templates_template_id. Making a successful to request to that endpoint will return the JSON for the template.
Or are you asking how to import your external email into HubSpot? You may need to adjust the format of your JSON, but it's possible you could create an email template using the CMS Templates API: https://developers.hubspot.com/docs/methods/templates/post_templates, and then you could create an email from the template.
But if I've misunderstood what you're asking, let me know and I'll be happy to take another look.
thank you for your answer. I can not understand how to use your documentation.
I try to re-explain my request : I have a json file on a remote server with wordpress with all of my post blog on this server with wordpress, and I would like to use it in a loop in a template email hubspot to display my posts.