APIs & Integrations

MBos
Member

Custom modules API

Hi,

 

Is there an API for programmatically uploading custom (email) modules?

 

Thanks,

Max

0 Upvotes
5 Replies 5
Henrik_B_Stein
Participant | Platinum Partner
Participant | Platinum Partner

Custom modules API

Hi MBos,

I think what you are looking for is the hubspot-cli. Follow the instructions for "Install", "Upgrade, "init" and then "upload" or "watch. An example of this can be found here. Let me know if this helps! If you're having trouble setting up your hubspot-cli, feel free to reach out!

Best regards,
Henrik Bartenstein

0 Upvotes
MBos
Member

Custom modules API

Hi Henrik,

 

Thank you for your help, but it's a different kind of module I'm after. Sorry for not being too clear in my first post, but with email modules I mean the kind that you can use in HubSpot's email editor as building blocks, these: https://developers.hubspot.com/docs/cms/building-blocks/modules/files.

 

Max

0 Upvotes
Henrik_B_Stein
Participant | Platinum Partner
Participant | Platinum Partner

Custom modules API

Hey Max,

I actually meant the same kind of modules, respectively almost any kind of files you want to upload to you design tools. You can just navigate to your project-folder or the folder where your module is stored, open a terminal and use the CLI to upload your files. If your custom module is structured like the one in the second screenshot https://developers.hubspot.com/docs/cms/building-blocks/modules/files, it will appear as a module in the design manager.

Best regards,
Henrik

0 Upvotes
MBos
Member

Custom modules API

Oh interesting, thanks! The CLI solution unfortunately wouldn't work for our use case.

 

We namely want to be able to programmatically upload custom modules using the HubSpot API to the accounts of our users that use our HubSpot integration (it's available on the HubSpot app marketplace). Do you know if there is a similar solution available for use of the HubSpot API?

0 Upvotes
Henrik_B_Stein
Participant | Platinum Partner
Participant | Platinum Partner

Custom modules API

Hey MBOS,
In that case, you can make your files available to the customer in their app settings. https://developers.hubspot.com/docs/api/create-an-app-settings-page

Henrik

0 Upvotes