Get backlinks for a note
GET
/notes/by-id/{id}/backlinks
const url = 'https://api.engram.page/notes/by-id/example/backlinks';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/by-id/example/backlinks \ --header 'Authorization: Bearer <token>'Returns every note that links to the given note UUID (the inverse of a note’s own links). Returns 400 for a malformed UUID and 404 when no such note exists in the vault.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Note UUID
Responses
Section titled “Responses”Backlinks
Media typeapplication/json
Backlinks
object
backlinks
required
Capped at 200 edges, ordered oldest-first. Not paginated yet.
Array<object>
Backlinkobject
alias
string
anchor
string
source_note_id
required
string format: uuid
source_path
string
source_title
string
Examplegenerated
{ "backlinks": [ { "alias": "example", "anchor": "example", "source_note_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "source_path": "example", "source_title": "example" } ]}Invalid UUID
No such note