Search⌘ K
AI Features

Creating Templates

Explore how to create templates in HubSpot CMS by sending POST requests to the Templates API. Learn to set request parameters, handle API responses, and build a simple landing page template with practical code examples. Understand key response fields and token management for seamless template creation.

Create a template

A template is a basic structure used to build websites through HubSpot. HubSpot provides a variety of templates we can choose from to build our website. However, we can also create templates by using the HubSpot Templates API.

To create a template, we need to send a POST request to the templates endpoint available in HubSpot. The base URL for this endpoint is as follows: ...