Attachments

Get an attachment

Returns metadata + base64 content by default. Pass ?raw=1 to stream the raw bytes instead; the metadata then rides in x-engram-content-hash, x-engram-mime-type, x-engram-mtime and x-engram-updated-at response headers.

get/api/attachments/*path

Request

  • Base URL: https://api.engram.page
  • URL: https://api.engram.page/api/attachments/*path
  • Auth: HTTP bearer

Path parameters

pathstring required

Attachment path

Query parameters

rawstring

"1" streams raw bytes instead of JSON.

Response

Attachment

content_base64string required

Base64-encoded file bytes.

content_hashstring nullable

Opaque content fingerprint — see AttachmentMeta.content_hash.

created_atstring date-time nullable
idstring uuid nullable
mime_typestring nullable
mtimenumber float
pathstring required
size_bytesinteger
updated_atstring date-time nullable

Changes

No recorded changes to this operation across all 1 revision of this API.