Creating Pages
Explore how to create landing pages using HubSpot CMS Pages API by sending POST requests with required parameters and custom templates. Understand the process of publishing your draft pages in HubSpot's developer portal to make them live. This lesson equips you with the skills to automate page creation and manage landing page visibility effectively.
We'll cover the following...
Create a landing page
When creating a custom website or blog, an eye-catching landing page is a huge asset to drawing traffic. Using the Pages API, we can quickly create new landing pages using custom or default templates. By sending a POST request to the landing pages endpoint, we can automate the process of creating a new page.
The base URL of the landing pages endpoint is:
https://api.hubspot.com/cms/v3/pages/landing-pages
To make a successful POST request to this endpoint, our application must have the content scope.
Request parameters
Apart from a couple of required body parameters, this endpoint also accepts some optional body parameters. The table below discusses these parameters: ...