# headerFooters.get

> Get a single header/footer slot entry by address.



- Member path: `doc.headerFooters.get(…)`
- Mutates document: no
- Idempotency: `idempotent`
- Supports tracked mode: no
- Supports dry run: no

## Expected result

Returns a HeaderFooterSlotEntry for the targeted section slot.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {
    "SectionAddress": {
      "type": "object",
      "properties": {
        "kind": {
          "const": "section"
        },
        "sectionId": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "kind",
        "sectionId"
      ]
    }
  },
  "type": "object",
  "properties": {
    "target": {
      "type": "object",
      "properties": {
        "kind": {
          "const": "headerFooterSlot"
        },
        "section": {
          "$ref": "#/$defs/SectionAddress"
        },
        "headerFooterKind": {
          "enum": [
            "header",
            "footer"
          ]
        },
        "variant": {
          "enum": [
            "default",
            "first",
            "even"
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "kind",
        "section",
        "headerFooterKind",
        "variant"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "target"
  ]
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {
    "SectionAddress": {
      "type": "object",
      "properties": {
        "kind": {
          "const": "section"
        },
        "sectionId": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "kind",
        "sectionId"
      ]
    }
  },
  "type": "object",
  "properties": {
    "section": {
      "$ref": "#/$defs/SectionAddress"
    },
    "sectionIndex": {
      "type": "integer",
      "minimum": 0
    },
    "kind": {
      "enum": [
        "header",
        "footer"
      ]
    },
    "variant": {
      "enum": [
        "default",
        "first",
        "even"
      ]
    },
    "refId": {
      "type": [
        "string",
        "null"
      ]
    },
    "isExplicit": {
      "type": "boolean"
    }
  },
  "additionalProperties": false,
  "required": [
    "section",
    "sectionIndex",
    "kind",
    "variant",
    "isExplicit"
  ]
}
```

## Pre-apply throws

- `TARGET_NOT_FOUND`
- `INVALID_TARGET`
- `INVALID_INPUT`

## Non-applied receipt codes

- None

