Get a note by path
const url = 'https://api.engram.page/notes/*path';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.engram.page/notes/*path' \ --header 'Authorization: Bearer <token>'Returns the full note (including content) at the given slash-separated path, or 404 if no note exists there.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Note path (slash-separated)
Responses
Section titled “Responses”Note
object
OKF frontmatter description field
OKF frontmatter created/date field
OKF frontmatter timestamp/modified/updated field
Outgoing link/embed edges, resolved. Wikilink and markdown syntax alike.
object
Display text: [[target|alias]]’s alias, or [label](target)’s label.
Heading/block reference: [[target#anchor]] or [x](target#anchor).
True when the target could not be resolved.
“wikilink” or “embed” — whether the link EMBEDS its target. Not the source syntax; markdown-form links carry these same two values.
Resolved note path.
The link target, percent-DECODED. [[Target]] and [x](Target.md) both yield Target/Target.md here — not the literal source bytes.
Client mtime (epoch seconds)
Present when parse_status is “degraded”: {code, message, detail}
object
Frontmatter parse outcome
OKF frontmatter resource field
OKF frontmatter type field
Example
{ "parse_status": "ok", "path": "Projects/engram.md"}No such note