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

# headerFooters.parts.list

> List unique header/footer part records from document relationships.

## Summary

List unique header/footer part records from document relationships.

* Operation ID: `headerFooters.parts.list`
* API member path: `editor.doc.headerFooters.parts.list(...)`
* Mutates document: `no`
* Idempotency: `idempotent`
* Supports tracked mode: `no`
* Supports dry run: `no`
* Deterministic target resolution: `yes`

## Expected result

Returns a paginated DiscoveryOutput of HeaderFooterPartEntry items.

## Input fields

| Field | Type | Required | Description |
| - | - | - | - |
| `kind` | enum | no | `"header"`, `"footer"` |
| `limit` | integer | no | |
| `offset` | integer | no | |

### Example request

```json theme={null}
{
  "kind": "header",
  "limit": 50
}
```

## Output fields

| Field | Type | Required | Description |
| - | - | - | - |
| `evaluatedRevision` | string | yes | |
| `items` | object\[] | yes | |
| `page` | PageInfo | yes | PageInfo |
| `page.limit` | integer | yes | |
| `page.offset` | integer | yes | |
| `page.returned` | integer | yes | |
| `total` | integer | yes | |

### Example response

```json theme={null}
{
  "evaluatedRevision": "rev-001",
  "items": [
    {
      "handle": {
        "ref": "handle:abc123",
        "refStability": "stable",
        "targetKind": "text"
      },
      "id": "id-001",
      "kind": "header",
      "partPath": "example",
      "referencedBySections": [
        {
          "kind": "section",
          "sectionId": "example"
        }
      ],
      "refId": "example"
    }
  ],
  "page": {
    "limit": 50,
    "offset": 0,
    "returned": 1
  },
  "total": 1
}
```

## Pre-apply throws

* `CAPABILITY_UNAVAILABLE`
* `INVALID_INPUT`

## Non-applied failure codes

* None

## Raw schemas

> [accordion] Raw input schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "kind": {
>       "enum": [
>         "header",
>         "footer"
>       ]
>     },
>     "limit": {
>       "minimum": 1,
>       "type": "integer"
>     },
>     "offset": {
>       "minimum": 0,
>       "type": "integer"
>     }
>   },
>   "type": "object"
> }
> ```

> [accordion] Raw output schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "evaluatedRevision": {
>       "type": "string"
>     },
>     "items": {
>       "items": {
>         "additionalProperties": false,
>         "properties": {
>           "handle": {
>             "$ref": "#/$defs/ResolvedHandle"
>           },
>           "id": {
>             "type": "string"
>           },
>           "kind": {
>             "enum": [
>               "header",
>               "footer"
>             ]
>           },
>           "partPath": {
>             "type": "string"
>           },
>           "referencedBySections": {
>             "items": {
>               "$ref": "#/$defs/SectionAddress"
>             },
>             "type": "array"
>           },
>           "refId": {
>             "type": "string"
>           }
>         },
>         "required": [
>           "id",
>           "handle",
>           "refId",
>           "kind",
>           "partPath",
>           "referencedBySections"
>         ],
>         "type": "object"
>       },
>       "type": "array"
>     },
>     "page": {
>       "$ref": "#/$defs/PageInfo"
>     },
>     "total": {
>       "minimum": 0,
>       "type": "integer"
>     }
>   },
>   "required": [
>     "evaluatedRevision",
>     "total",
>     "items",
>     "page"
>   ],
>   "type": "object"
> }
> ```


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