**Version: 202601**

# List cards added to a template

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

List all cards added to a template within an edit session, including global card groups such as the header and footer.

## Request

**Path Parameters**

- `oseid` string (required)

  Edit session ID
- `doc_id` string (required)

  Document (template file) ID

**Query Parameters**

- `template_name` string

  Optional current page template name; scopes supported data source types

## Responses

**200**

OK

**application/json**

**Schema | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message
- `data` object

  - `data` object

    Cards of the template plus the global card groups: `page_sections`, `sections`, `header_sections`, `footer_sections`, `app_embeds`, `plugins`, `script_tags`

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "data": {}
  }
}
```
