Skip to content

List attachments (metadata only)

GET
/attachments
curl --request GET \
--url https://api.engram.page/attachments \
--header 'Authorization: Bearer <token>'

Returns metadata (path, MIME type, size, timestamps — no bytes) for every attachment in the current vault. Returns 500 if the listing fails.

Attachments

Media typeapplication/json
AttachmentsResponse
object
attachments
required
Array<object>
AttachmentMeta
object
created_at
string format: date-time
nullable
id
string format: uuid
nullable
mime_type
string
nullable
mtime

Client mtime (epoch seconds)

number format: float
path
required
string
size_bytes
integer
updated_at
string format: date-time
nullable
Example
{
"attachments": [
{
"path": "assets/diagram.png"
}
]
}

Listing failed

Media typeapplication/json
MessageError
object
error
required
string
Example
{
"error": "not found"
}