# AnnotationsApi.get()

```ts
get(id: string): Promise<AnnotationInfo | null>
```

The annotation with that id, wherever it sits now, as `AnnotationInfo`, or `null` — the way to keep hold of one across saves, deletions and other readers. A miss reads every page. Words blanked as `list()` blanks them without `extract`. Needs no feature.

- Kind: method
- Since: 1.0.0

| Parameter | Type | Description |
| --- | --- | --- |
| `id` | `string` | The annotation's id, as `list()` or `create()` gave it. |

Returns `Promise<AnnotationInfo | null>`

Throws:

- `INVALID_ARGUMENT` — an `id` that is not a non-empty string.
- `DOCUMENT_CLOSED` — the document has been closed.

```ts
const note = await doc.annotations.get(id);
if (note) console.log(note.pageIndex, note.contents);
```

Part of [AnnotationsApi](https://kernstra.com/docs/web-sdk/api/doc-annotations) in the Kernstra Web SDK 1.0.0 API reference.

Web page: https://kernstra.com/docs/web-sdk/api/doc-annotations/get
