**Version: 202701**

# Get theme file

**GET** `/openapi/2027-01/themes/:theme_id/doc`

Retrieve details of a specific theme's doc file using its unique identifier

## Request

**Path Parameters**

- `theme_id` string (required)

  Theme's unique identifier

**Query Parameters**

- `type` string

  The type of file to retrieve: `layout`, `templates`, `sections`, `snippets`, `assets`, `config`, `locales`, `blocks`. Defaults to `layout`
- `location` string

  The file's location. Defaults to theme.liquid

## Responses

**200**

OK

**application/json**

**Schema | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message
- `data` object

  - `theme_file` object

    Theme file

    - `id` string

      The ID of the theme file
    - `theme_id` string

      The ID of the theme the file belongs to
    - `type` string

      The type of the file
    - `location` string

      The file's location path
    - `remote_url` string

      The remote URL of the file
    - `content` string

      The full content of the file

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "theme_file": {
      "id": "string",
      "theme_id": "string",
      "type": "string",
      "location": "string",
      "remote_url": "string",
      "content": "string"
    }
  }
}
```
