latestOpenAPI 3.1.02026-08-18490237.4 KB

c690ac22ae04

attachment

Get a presigned R2 upload URL for an attachment

post/api/preview/attachments/presign

Request body

capsuleIdstring required

UUID v4 string

contentTypestring required

MIME type from the upload form.

fileNamestring required

Original file name. Sanitized server-side before object-key construction.

fileSizeinteger required

Size in bytes. Validated against per-plan caps server-side.

Response

Successful response

objectKeystring required
uploadUrlstring required