**Version: 202601**

# Get edit session file

**GET** `/openapi/2026-01/themes/edit-sessions/:oseid/files/:doc_id`

Read a single file within a theme edit session.

## Request

**Path Parameters**

- `oseid` string (required)

  Edit session ID
- `doc_id` string (required)

  Document ID of the file within the session

## Responses

**200**

OK

**application/json**

**Schema | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message
- `data` object

  - `template` object

    The edit session file

    - `id` string

      Document ID
    - `theme_id` string

      Theme ID
    - `type` string

      File type: `layout`, `templates`, `sections`, `snippets`, `assets`, `config`, `locales`
    - `location` string

      File location, e.g. index.liquid
    - `content` string

      Raw file content as a JSON string (parse on the client)
    - `oseid` string

      Edit session ID

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