> ## Documentation Index
> Fetch the complete documentation index at: https://developers.hubspot.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

---
id: 57f1a34d-86ba-4462-a389-fd21ff945282
---

# Get the layout by ID

> Get the details for a specific layout, by ID.



## OpenAPI

````yaml specs/legacy/v2/layouts-v2.json GET /content/api/v2/layouts/{layoutId}
openapi: 3.0.1
info:
  title: Layouts API
  description: >-
    Use the layouts API to retrieve data about global groups for CMS templates
    in the developer file system. These layouts can be found in the design
    manager.
  version: v2
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Layouts
paths:
  /content/api/v2/layouts/{layoutId}:
    get:
      tags:
        - Layouts
      summary: Get the layout by ID
      description: Get the details for a specific layout, by ID.
      operationId: getLayoutById
      parameters:
        - name: layoutId
          in: path
          description: The ID of the layout
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Layout'
              examples:
                layout_by_id:
                  summary: Get layout by ID 2228759063
                  value:
                    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: []
                    layout_data:
                      cell: false
                      cells: []
                      css_class: ''
                      css_id: ''
                      css_id_str: ''
                      css_style: ''
                      editable: false
                      id: module_1520438257026139
                      is_container: false
                      is_content_overridden: false
                      is_in_container: false
                      language_overrides: {}
                      order: 0
                      params: {}
                      root: false
                      row: false
                      row_meta_data: []
                      rows:
                        - '0':
                            cell: false
                            cells: []
                            css_class: ''
                            css_id: ''
                            css_id_str: ''
                            css_style: ''
                            editable: false
                            id: module_1520438257026140
                            is_container: false
                            is_content_overridden: false
                            is_in_container: false
                            language_overrides: {}
                            order: 0
                            params: {}
                            root: false
                            row: false
                            row_meta_data: []
                            rows: []
                            section_name: header
                            type: section_delimiter
                            w: 12
                            widgets: []
                            x: 0
                        - '0':
                            cell: false
                            cells: []
                            css_class: ''
                            css_id: ''
                            css_id_str: ''
                            css_style: ''
                            editable: false
                            id: module_1520438259515148
                            is_container: false
                            is_content_overridden: false
                            is_in_container: false
                            label: Site Search Input
                            language_overrides: {}
                            name: module_1520438259515148
                            order: 0
                            params:
                              css_class: ''
                              css_id: ''
                              css_id_str: ''
                              css_style: ''
                              custom_widget_id: 5856388301
                              module_id: 2712622
                              overrideable: true
                              per_widget_wrapper_html: ''
                              schema_version: 2
                              widget_name: Search Field
                              wrapping_html: ''
                            root: false
                            row: false
                            row_meta_data: []
                            rows: []
                            type: custom_widget
                            w: 12
                            widgets: []
                            x: 0
                        - '0':
                            cell: false
                            cells: []
                            css_class: ''
                            css_id: ''
                            css_id_str: ''
                            css_style: ''
                            editable: false
                            id: module_1520438261786150
                            is_container: false
                            is_content_overridden: false
                            is_in_container: false
                            label: Site Search Results
                            language_overrides: {}
                            name: module_1520438261786150
                            order: 0
                            params:
                              css_class: ''
                              css_id: ''
                              css_id_str: ''
                              css_style: ''
                              custom_widget_id: 5856388283
                              module_id: 2712624
                              overrideable: true
                              per_widget_wrapper_html: ''
                              schema_version: 2
                              widget_name: Search Results
                              wrapping_html: ''
                            root: false
                            row: false
                            row_meta_data: []
                            rows: []
                            type: custom_widget
                            w: 12
                            widgets: []
                            x: 0
                        - '0':
                            cell: false
                            cells: []
                            css_class: ''
                            css_id: ''
                            css_id_str: ''
                            css_style: ''
                            editable: false
                            id: module_1520438257026141
                            is_container: false
                            is_content_overridden: false
                            is_in_container: false
                            language_overrides: {}
                            order: 0
                            params: {}
                            root: false
                            row: false
                            row_meta_data: []
                            rows: []
                            section_name: footer
                            type: section_delimiter
                            w: 12
                            widgets: []
                            x: 0
                      type: cell
                      w: 12
                      widgets: []
                      x: 0
                    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
components:
  schemas:
    Layout:
      type: object
      properties:
        id:
          type: string
          description: The unique id of the layout
        label:
          type: string
          description: The name of the layout that shows up in template builder
        path:
          type: string
          description: The path of the layout as it shows up in template builder
        category_id:
          type: string
          description: The category the layout applies to
        created:
          type: integer
          description: When the layout was first created, in milliseconds since the epoch
        updated:
          type: integer
          description: When the layout was last updated, in milliseconds since the epoch
        deleted_at:
          type: integer
          description: When the layout was deleted, in milliseconds since the epoch
        body_class:
          type: string
          description: The CSS class applied to the layout body
        body_css_id:
          type: string
          description: The CSS id applied to the layout body
        layout_data:
          type: object
          description: A complex JSON structure with the actual data for the layout
        custom_head:
          type: string
          description: Custom HTML added to the head of pages using the layout
        include_default_custom_css:
          type: boolean
          description: Flag to include the Primary CSS stylesheet
        enable_domain_stylesheet:
          type: boolean
          description: Flag to include the domain stylesheets for a page using the layout
        attached_stylesheets:
          type: array
          items:
            type: string
          description: >-
            List of references to stylesheets that are attached directly to the
            layout

````