**Version: 202601**

# Get theme file tree

**GET** `/openapi/2026-01/themes/:theme_id/doctree`

Get the file tree of the specified theme.

## Request

**Path Parameters**

- `theme_id` string (required)

  The unique ID of the theme for which the doc-tree is requested

## Responses

**200**

OK

**application/json**

**Schema | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message
- `data` object

  - `layouts` object[]

    Array of layout files included in the theme. Each object contains the ID and location

    *   Array \[

    - `id` string

      File ID
    - `location` string

      Path or location of the file
    *   \]
  - `templates` object[]

    Array of template files included in the theme. Each object contains the ID and location

    *   Array \[

    - `id` string

      File ID
    - `location` string

      Path or location of the file
    *   \]
  - `sections` object[]

    Array of section files included in the theme. Each object contains the ID and location

    *   Array \[

    - `id` string

      File ID
    - `location` string

      Path or location of the file
    *   \]
  - `snippets` object[]

    Array of snippet files included in the theme. Each object contains the ID and location

    *   Array \[

    - `id` string

      File ID
    - `location` string

      Path or location of the file
    *   \]
  - `assets` object[]

    Array of asset files included in the theme. Each object contains the ID and location

    *   Array \[

    - `id` string

      File ID
    - `location` string

      Path or location of the file
    *   \]
  - `configs` object[]

    Array of configuration files included in the theme. Each object contains the ID and location

    *   Array \[

    - `id` string

      File ID
    - `location` string

      Path or location of the file
    *   \]
  - `locales` object[]

    Array of localization files included in the theme. Each object contains the ID and location

    *   Array \[

    - `id` string

      File ID
    - `location` string

      Path or location of the file
    *   \]
  - `blocks` object[]

    Array of theme block files included in the theme. Each object contains the ID and location

    *   Array \[

    - `id` string

      File ID
    - `location` string

      Path or location of the file
    *   \]

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "layouts": [
      {
        "id": "string",
        "location": "string"
      }
    ],
    "templates": [
      {
        "id": "string",
        "location": "string"
      }
    ],
    "sections": [
      {
        "id": "string",
        "location": "string"
      }
    ],
    "snippets": [
      {
        "id": "string",
        "location": "string"
      }
    ],
    "assets": [
      {
        "id": "string",
        "location": "string"
      }
    ],
    "configs": [
      {
        "id": "string",
        "location": "string"
      }
    ],
    "locales": [
      {
        "id": "string",
        "location": "string"
      }
    ],
    "blocks": [
      {
        "id": "string",
        "location": "string"
      }
    ]
  }
}
```
