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

# getNodeById

> Retrieve a single node by its unique ID.

## Summary

Retrieve a single node by its unique ID.

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

## Expected result

Returns an SDNodeResult envelope with the projected SDM/1 node and canonical address.

## Input fields

| Field | Type | Required | Description |
| - | - | - | - |
| `nodeId` | string | yes | |
| `nodeType` | enum | no | `"paragraph"`, `"heading"`, `"listItem"`, `"table"`, `"tableRow"`, `"tableCell"`, `"tableOfContents"`, `"image"`, `"sdt"` |

### Example request

```json theme={null}
{
  "nodeId": "node-def456",
  "nodeType": "paragraph"
}
```

## Output fields

| Field | Type | Required | Description |
| - | - | - | - |
| `address` | NodeAddress | yes | NodeAddress |
| `context` | object | no | |
| `node` | object | yes | |

### Example response

```json theme={null}
{
  "address": {
    "kind": "block",
    "nodeId": "node-def456",
    "nodeType": "paragraph",
    "story": {
      "kind": "story",
      "storyType": "body"
    }
  },
  "context": {},
  "node": {}
}
```

## Pre-apply throws

* `TARGET_NOT_FOUND`

## Non-applied failure codes

* None

## Raw schemas

> [accordion] Raw input schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "nodeId": {
>       "type": "string"
>     },
>     "nodeType": {
>       "enum": [
>         "paragraph",
>         "heading",
>         "listItem",
>         "table",
>         "tableRow",
>         "tableCell",
>         "tableOfContents",
>         "image",
>         "sdt"
>       ]
>     }
>   },
>   "required": [
>     "nodeId"
>   ],
>   "type": "object"
> }
> ```

> [accordion] Raw output schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "address": {
>       "$ref": "#/$defs/NodeAddress"
>     },
>     "context": {
>       "type": "object"
>     },
>     "node": {
>       "type": "object"
>     }
>   },
>   "required": [
>     "node",
>     "address"
>   ],
>   "type": "object"
> }
> ```


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