Skip to main content
GET
/
content
/
api
/
v2
/
layouts
List layouts
curl --request GET \
  --url https://api.hubapi.com/content/api/v2/layouts
{
  "limit": 2,
  "offset": 0,
  "total": 46,
  "total_count": 46,
  "objects": [
    {
      "attached_amp_stylesheet": 0,
      "attached_js": [],
      "attached_stylesheets": [],
      "author": "marketplaceteam@hubspot.com",
      "author_at": 1548263624833,
      "body": {
        "enable_domain_stylesheets": false,
        "include_default_custom_css": false,
        "folder": "Default_Search",
        "attached_stylesheets": [],
        "cdn_purge_embargo_time": 1548263924820,
        "attached_js": [],
        "custom_head": "",
        "attached_amp_stylesheet": 0,
        "body_css_id": null,
        "custom_footer": "",
        "body_class": "",
        "body_css": "",
        "builtin": false,
        "purchased": false,
        "generator": null,
        "generated_template_id": 5857301778,
        "marketplace_good_id": 263737,
        "cloned_from": null,
        "body_editable": false,
        "content_tags": [
          {
            "name": "SINGLE_COLUMN",
            "source": "MARKETPLACE"
          },
          {
            "name": "DRAG_AND_DROP",
            "source": "MARKETPLACE"
          },
          {
            "name": "OTHER_INDUSTRY",
            "source": "MARKETPLACE"
          },
          {
            "name": "HIDDEN",
            "source": "MARKETPLACE"
          }
        ],
        "last_edit_session_id": null,
        "last_edit_update_id": null,
        "has_user_changes": true,
        "marketplace_delivery_id": 25843497,
        "is_read_only": true
      },
      "body_class": "",
      "body_css": "",
      "body_editable": false,
      "builtin": false,
      "category": 1,
      "category_id": 1,
      "cdn_purge_embargo_time": 1548263924820,
      "content_tags": [
        {
          "name": "SINGLE_COLUMN",
          "source": "MARKETPLACE"
        },
        {
          "name": "DRAG_AND_DROP",
          "source": "MARKETPLACE"
        },
        {
          "name": "OTHER_INDUSTRY",
          "source": "MARKETPLACE"
        },
        {
          "name": "HIDDEN",
          "source": "MARKETPLACE"
        }
      ],
      "created": 1520438256581,
      "custom_footer": "",
      "custom_head": "",
      "default": false,
      "deleted_at": 0,
      "enable_domain_stylesheets": false,
      "folder": "Default_Search",
      "folder_id": 5500358806,
      "generated_template_id": 5857301778,
      "host_template_types": [
        "ANY"
      ],
      "id": 5857301776,
      "include_default_custom_css": false,
      "is_available_for_new_content": true,
      "is_read_only": true,
      "label": "Site Search Results Page",
      "languages": [],
      "marketplace_delivery_id": 25843497,
      "marketplace_good_id": 263737,
      "meta": {
        "hasBufferedChanges": false
      },
      "path": "generated_layouts/5626542347.html",
      "portal_id": 62515,
      "purchased": false,
      "template_type": 4,
      "updated": 1548263624833,
      "updated_by": "marketplaceteam@hubspot.com",
      "updated_by_id": 2411823
    }
  ]
}

Query Parameters

limit
integer
default:20

The number of items to return. Defaults to 20.

offset
integer
default:0

The offset set to start returning rows from. Defaults to 0.

category_id
string

Filter by category ID (exact)

created
string

Filter by creation date (exact, range, gt, gte, lt, lte)

id
string

Filter by ID (exact, in)

label
string

Filter by label (exact)

path
string

Filter by path (exact)

Response

200 - application/json

Successful response

objects
object[]
total
integer

Total number of layouts

limit
integer

Limit used in query

offset
integer

Offset used in query