> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# savedEmailSections

> List saved email sections, active and archived, optionally filtered by name or status.

**Required scopes:** [`marketing_templates_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-marketing_templates_read)

**Store must have one of:** `EMAIL_SMS`, `HSA`, `ORDER_TRACKING`, `RETURNS`, `TNPL`, `REVIEWS`

## Arguments

**after** `String`

Forward pagination cursor — returns items after it. Pass an `edges[].cursor` or `pageInfo.endCursor` from a previous page.

**before** `String`

Backward pagination cursor — returns items before it. Pass an `edges[].cursor` or `pageInfo.startCursor` from a previous page.

**first** `Int`

Forward pagination: returns the first N items (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N items (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**orderBy** `[SavedEmailSectionSortKey](/docs/api-reference/v3/reference/marketing/saved-email-section-sort-key)`

Which key to sort by (defaults to the first key, newest-first). Combine with `reverse` to flip direction.

**query** `String`

Case-insensitive substring match on the section name. At most 200 characters.

**reverse** `Boolean`

Reverses the sort direction selected by `orderBy` (or its default).

**status** `[SavedEmailSectionStatus](/docs/api-reference/v3/reference/marketing/saved-email-section-status)`

Only include sections with this status.

## Returns

**savedEmailSections** `[SavedEmailSectionConnection!](/docs/api-reference/v3/pagination)` *required*

A paginated list of SavedEmailSection items.

**fields**

**edges** `[\[SavedEmailSectionEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**fields**

**cursor** `String!` *required*

Opaque cursor for this item; pass to `after`/`before` to page from here.

**node** `[SavedEmailSection!](/docs/api-reference/v3/reference/marketing/saved-email-section)` *required*

The item at this edge.

**fields**

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the section was created.

**id** `ID!` *required*

The id of this saved section.

**legacyId** `String!` *required*

The section's 24-character hex id, as an email's section reference stores it.

**name** `String!` *required*

The merchant-facing name, unique in the store across active and archived sections.

**sections** `[\[EmailTemplateSection!\]](/docs/api-reference/v3/reference/marketing/email-template-section)`

The blocks in this saved section, in order. Null if they can't be read.

**Requires:** [`marketing_templates_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-marketing_templates_read)

**sectionsJson** `[\[JSON!\]](/docs/api-reference/v3/reference/common/json)`

`sections` with every field selected, as JSON: one element per root block, in order, with `__typename` and nested column children. Null if they can't be read. Edits go through operations.

**Requires:** [`marketing_templates_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-marketing_templates_read)

**status** `[SavedEmailSectionStatus!](/docs/api-reference/v3/reference/marketing/saved-email-section-status)` *required*

Whether the section can be used in new emails.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the section was last edited.

**nodes** `[\[SavedEmailSection!\]!](/docs/api-reference/v3/reference/marketing/saved-email-section)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**fields**

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the section was created.

**id** `ID!` *required*

The id of this saved section.

**legacyId** `String!` *required*

The section's 24-character hex id, as an email's section reference stores it.

**name** `String!` *required*

The merchant-facing name, unique in the store across active and archived sections.

**sections** `[\[EmailTemplateSection!\]](/docs/api-reference/v3/reference/marketing/email-template-section)`

The blocks in this saved section, in order. Null if they can't be read.

**Requires:** [`marketing_templates_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-marketing_templates_read)

**sectionsJson** `[\[JSON!\]](/docs/api-reference/v3/reference/common/json)`

`sections` with every field selected, as JSON: one element per root block, in order, with `__typename` and nested column children. Null if they can't be read. Edits go through operations.

**Requires:** [`marketing_templates_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-marketing_templates_read)

**status** `[SavedEmailSectionStatus!](/docs/api-reference/v3/reference/marketing/saved-email-section-status)` *required*

Whether the section can be used in new emails.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the section was last edited.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**fields**

**endCursor** `String`

Cursor of the last edge in this page; pass to `after` to page forward.

**hasNextPage** `Boolean!` *required*

Whether more items exist after this page (drives forward pagination with `first`/`after`).

**hasPreviousPage** `Boolean!` *required*

Whether more items exist before this page (drives backward pagination with `last`/`before`).

**startCursor** `String`

Cursor of the first edge in this page; pass to `before` to page backward.

## Example

```graphql theme={null}
query {
  savedEmailSections(after: "...", before: "...", first: 10, last: 10, orderBy: CREATED_AT, query: "...", reverse: true, status: ACTIVE) {
    nodes {
      createdAt
      id
      legacyId
      name
      sectionsJson
      status
      updatedAt
    }
    pageInfo { hasNextPage endCursor }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.