Skip to content

Notes linking to an attachment

GET
/attachments/by-id/{id}/backlinks
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.

id
required
string

Attachment UUID

Backlinks

Media typeapplication/json
Backlinks
object
backlinks
required

Capped at 200 edges, ordered oldest-first. Not paginated yet.

Array<object>
Backlink
object
alias
string
nullable
anchor
string
nullable
source_note_id
required
string format: uuid
source_path
string
nullable
source_title
string
nullable

Example generated

{
"backlinks": [
{
"alias": "example",
"anchor": "example",
"source_note_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"source_path": "example",
"source_title": "example"
}
]
}

Invalid UUID

Media typeapplication/json
Error
object
errors
One of:
string

Example generated

{
"errors": {}
}