Skip to main content
The templates API provides full CRUD access to CMS templates in the design manager, along with buffer management for draft edits and version history for restoring previous states.
This is a legacy v2 API, which does not have a newer version available. It’s recommended to use one of these modern alternatives instead:
  • Local development: use the HubSpot CLI (hs fetch and hs upload) to manage template files directly from your local file system.
  • Programmatic access: use the CMS Source Code API to read and write template files via API.

Endpoints

EndpointPath
List templatesGET /content/api/v2/templates
Get template by IDGET /content/api/v2/templates/{template_id}
Create templatePOST /content/api/v2/templates
Update templatePUT /content/api/v2/templates/{template_id}
Delete templateDELETE /content/api/v2/templates/{template_id}
Restore deleted templatePOST /content/api/v2/templates/{template_id}/restore-deleted
Get auto-save bufferGET /content/api/v2/templates/{template_id}/buffer
Update auto-save bufferPUT /content/api/v2/templates/{template_id}/buffer
Check buffer for changesGET /content/api/v2/templates/{template_id}/has-buffered-changes
Publish bufferPOST /content/api/v2/templates/{template_id}/push-buffer-live
List template versionsGET /content/api/v2/templates/{template_id}/versions
Get template versionGET /content/api/v2/templates/{template_id}/versions/{version_id}
Restore template versionPOST /content/api/v2/templates/{template_id}/versions/restore
Last modified on March 30, 2026