# Read a note or another file of the vault: `{path, content, front_matter, tags, modified_at,

`POST /datanotes/operations/read_note/` (operation `read_note`)

Read a note or another file of the vault: `{path, content, front_matter, tags, modified_at,
created_at, size}`. `content` is the whole text, front matter included; `tags` are without `#`,
from the text and the front matter; the times are in the database's time zone. A missing file is
an error. `path`: vault-relative, forward slashes.

## Request body

`application/json`, required

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `path` | `string` | yes |  | The file's vault path, with its extension ("Films/Metropolis.md"). |

## Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | Done. | `object` (application/json) |
| 400 | Bad input: the body is not a JSON object, or an argument is unknown, missing or of the wrong type. | `Error` (application/json) |
| 401 | Missing or wrong bearer token. | `Error` (application/json) |
| 404 | Unknown table, view, migration, note or folder. | `Error` (application/json) |
| 409 | Ambiguous table name: it matches several tables (`paths` or `tables` lists them). | `AmbiguousName` (application/json) |
| 500 | Unexpected error. | `Error` (application/json) |

The schemas named here are in [openapi.json](https://datanotes.dev/openapi.json) (`components.schemas`).
