---
title: "Retrieves the layouts associated with the specified content."
method: GET
path: "/authoring/v1/layouts/by-content/{content-id}"
tags: ["Authoring layouts"]
---

# Retrieves the layouts associated with the specified content.

`GET /authoring/v1/layouts/by-content/{content-id}`

Use the /layouts/by-content/{contentId} endpoint to retrieve the layouts associated with the specified content. When the 'filter' query string parameter is set to 'selected', only the selected layout (which could be a content override) is returned.<br />User roles: admin, manager, editor, viewer

## Path parameters

- `content-id` string, required

## Query parameters

- `projectId` string
- `filter` string
- `offset` number
- `limit` number
- `fields` string

## Headers

- `x-ibm-dx-project-id` string

## Response `200`

Success.

- object — A query result that returns resolved layouts.
  - `offset` integer — number of results to skip.
  - `limit` integer — number of results to return.
  - `href` string — the url of the current query.
  - `next` string — the url for the next page of results. Only present if there are more results.
  - `previous` string — the url for the previous page of results. Not present when on the first page.
  - `items` object[]
    - `id` string — The ID of the layout.
    - `rev` string — The current revision of the layout.
    - `name` string — The name of the layout.
    - `description` string — The description of the layout.
    - `classification` 'layout' — Indicates the type of this document.
    - `path` string — Optional path to associate with the layout. Must be unique. Will default to filesystem friendly version of /[NAME].
    - `prerender` boolean — Indicates if the layout should be prerendered.
    - `creatorId` string — The ID of the user that created the layout.
    - `creator` string — The display name of the user that created the layout. This field is only returned when the 'include' query string option is set to 'ALL' or 'metadata'. This field is read only.
    - `created` string, date-time — The created date of this layout in ISO 8601 with the format YYYY-MM-DDThh:mm:ss.sssZ. This field is read only.
    - `lastModifierId` string — The ID of the user that last modified the layout.
    - `lastModifier` string — The display name of the last user that modified the layout. This field is only returned when the 'include' query string option is set to 'ALL' or 'metadata'. This field is read only.
    - `lastModified` string, date-time — The last modified date of this layout in ISO 8601 with the format YYYY-MM-DDThh:mm:ss.sssZ. This field is read only.
    - `tags` string[]
    - `template` string
    - `templateType` 'handlebars' | 'angular' — Specifies the type of template associated with this layout. This field is required when prerender field is set to true.
    - `thumbnail` object — The reference to the asset that should act as the thumbnail of this layout.
      - `id` string — The ID of the asset.
      - `path` string — The path of the asset. This field is only returned when the 'include' query string option is set to 'ALL' or 'metadata'. This field is read only.
      - `url` string — The URL of the asset. This field is only returned when the 'include' query string option is set to 'ALL' or 'metadata'. This field is read only.

## Other responses

- `400` — Invalid ID OR Invalid input.
- `404` — The content with ID {contentId} was not found OR Current tenant's database is not provisioned.
- `429` — Too Many Requests, the server has reached a limit, the request must be sent again at a later time.

---

[API](https://skmtc.net/goacoustic/apis/acoustic-content-api.md) · [All operations](https://skmtc.net/goacoustic/apis/acoustic-content-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goacoustic/acoustic-content-api/revisions/677305266d89/schema)
