Read a note or another file of the vault: `{path, content, front_matter, tags, modified_at,
const url = 'https://example.com/datanotes/operations/read_note/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"path":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/datanotes/operations/read_note/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "path": "example" }'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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
The file’s vault path, with its extension (“Films/Metropolis.md”).
Example generated
{ "path": "example"}Responses
Section titled “Responses”Done.
A file of the vault with its front matter and tags.
object
Vault path.
The whole text, front matter included.
Parsed front matter (empty without one).
object
Tags (without #), in the text and in the front matter.
Last change, in the database’s time zone.
Creation, in the database’s time zone.
Size in bytes.
Example generated
{ "path": "example", "content": "example", "front_matter": {}, "tags": [ "example" ], "modified_at": "example", "created_at": "example", "size": 1}Bad input: the body is not a JSON object, or an argument is unknown, missing or of the wrong type.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}Missing or wrong bearer token.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}Unknown table, view, migration, note or folder.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}Ambiguous table name: it matches several tables (paths or tables lists them).
object
The tables’ folders the name matches.
The qualified tables the name matches.
Example generated
{ "error": "example", "paths": [ "example" ], "tables": [ "example" ]}Unexpected error.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}