List attachments (metadata only)
GET
/attachments
const url = 'https://api.engram.page/attachments';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 \ --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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Attachments
Media typeapplication/json
AttachmentsResponse
object
attachments
required
Array<object>
AttachmentMetaobject
created_at
string format: date-time
id
string format: uuid
mime_type
string
mtime
Client mtime (epoch seconds)
number format: float
path
required
string
size_bytes
integer
updated_at
string format: date-time
Example
{ "attachments": [ { "path": "assets/diagram.png" } ]}Listing failed
Media typeapplication/json
MessageError
object
error
required
string
Example
{ "error": "not found"}