latestOpenAPI 3.1.02026-08-18490237.4 KB

c690ac22ae04

attachment

Register an uploaded attachment after R2 verification

post/api/preview/attachments/confirm

Request body

capsuleIdstring required

UUID v4 string

fileNamestring required

Original file name; persisted on the row for display.

objectKeystring required

Canonical R2 object key returned from the presign endpoint. Server verifies the prefix matches <userId>/<capsuleId>/ before insert.

Response

Successful response

availableboolean
capsule_idstring nullable
created_atstring
deleted_atstring nullable
expires_atstring nullable
file_namestring
idstring
mime_typestring
object_keystring
sizeinteger
unavailable_atstring nullable
unavailable_reasonstring nullable