Notes linking to an attachment
GET
/attachments/by-id/{id}/backlinks
const url = 'https://api.engram.page/attachments/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/attachments/by-id/example/backlinks \ --header 'Authorization: Bearer <token>'Notes that link to or embed the attachment with the given UUID, one row per note. Empty when no such attachment exists in this vault.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Attachment 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
Example generated
{ "backlinks": [ { "alias": "example", "anchor": "example", "source_note_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "source_path": "example", "source_title": "example" } ]}Invalid UUID