Method Details
HTTP Methods:
GET
Response Format:
json
Requires Authentication?
Yes
Rate Limited?
Headers
Products:
Marketing
Required Scope:
Get the details for a specific layout, by ID.
There's a new version of the HubSpot API
As of November 30, 2022, HubSpot API Keys are being deprecated and are no longer supported. Continued use of HubSpot API Keys is a security risk to your account and data. Your API Keys could be deactivated at any time after Nov. 30th, and we recommend that you migrate to Private Apps as soon as possible so you do not lose business-critical functionality.
HTTP Methods:
GET
Response Format:
json
Requires Authentication?
Yes
Rate Limited?
Headers
Products:
Marketing
Required Scope:
Get the details for a specific layout, by ID.
Required Parameters | How to use | Description |
---|---|---|
OAuth Access Token or API Key | Authorization: Bearer {token} header or hapikey={key} query parameter. |
Used to authenticate the request. Please see this page for more details about authentication. |
layout_id | Used in the request URL | Unique identifier for a particular blog |
Parameter name | Type | Description |
---|---|---|
body_class | string | The CSS class applied to the layout body |
body_css_id | string | The CSS id applied to the layout body |
category_id | string | The category the layout applies to |
created | long | When the layout was first created, in milliseconds since the epoch |
deleted_at | long | When the layout was deleted, in milliseconds since the epoch. Zero if the layout was never deleted. Use a DELETE request to delete the layout - do not set this directly. |
id | string | The unique id of the layout |
label | string | The name of the layout that shows up in template builder |
layout_data | string | A complex JSON structure with the actual data for the layout |
path | string | The path of the layout as it shows up in template builder |
updated | long | When the layout was last updated, in milliseconds since the epoch |
custom_head | string | Custom HTML added to the head of pages using the layout |
include_default_custom_css | boolean | Flag to include the Primary CSS stylesheet. Defaults to use value from Site Settings. Can be overridden at the page level. |
enable_domain_stylesheet | boolean | Flag to include the domain stylesheets for a page using the layout. Can be overridden at the page level. |
attached_stylesheets | array | List of references to stylesheets that are attached directly to the layout. Can be overridden at the page level. |