> ## 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.

# contentControls.getBinding

> Get the data binding metadata (w:dataBinding) of a content control.

## Summary

Get the data binding metadata (w:dataBinding) of a content control.

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

## Expected result

Returns the ContentControlBinding or null if no binding is set.

## Input fields

| Field | Type | Required | Description |
| - | - | - | - |
| `target` | object(nodeType="sdt") | yes | |
| `target.kind` | enum | yes | `"block"`, `"inline"` |
| `target.nodeId` | string | yes | |
| `target.nodeType` | `"sdt"` | yes | Constant: `"sdt"` |

### Example request

```json theme={null}
{
  "target": {
    "kind": "block",
    "nodeId": "node-def456",
    "nodeType": "sdt"
  }
}
```

## Output fields

### Variant 1 (required: storeItemId, xpath)

| Field | Type | Required | Description |
| - | - | - | - |
| `prefixMappings` | string | no | |
| `storeItemId` | string | yes | |
| `xpath` | string | yes | |

### Variant 2

*No fields.*

### Example response

```json theme={null}
{
  "prefixMappings": "example",
  "storeItemId": "example",
  "xpath": "example"
}
```

## Pre-apply throws

* `TARGET_NOT_FOUND`
* `INVALID_INPUT`
* `CAPABILITY_UNAVAILABLE`

## Non-applied failure codes

* None

## Raw schemas

> [accordion] Raw input schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "target": {
>       "additionalProperties": false,
>       "properties": {
>         "kind": {
>           "enum": [
>             "block",
>             "inline"
>           ]
>         },
>         "nodeId": {
>           "type": "string"
>         },
>         "nodeType": {
>           "const": "sdt"
>         }
>       },
>       "required": [
>         "kind",
>         "nodeType",
>         "nodeId"
>       ],
>       "type": "object"
>     }
>   },
>   "required": [
>     "target"
>   ],
>   "type": "object"
> }
> ```

> [accordion] Raw output schema
>
> ```json theme={null}
> {
>   "oneOf": [
>     {
>       "additionalProperties": false,
>       "properties": {
>         "prefixMappings": {
>           "type": "string"
>         },
>         "storeItemId": {
>           "type": "string"
>         },
>         "xpath": {
>           "type": "string"
>         }
>       },
>       "required": [
>         "storeItemId",
>         "xpath"
>       ],
>       "type": "object"
>     },
>     {
>       "type": "null"
>     }
>   ]
> }
> ```


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