Generates pre-signed S3/ActiveStorage direct upload headers and URL to stream large files directly to cloud storage without overloading the API gateway.
Generate Direct Upload Metadata
POST
/v1/attachments/direct_uploads
Parameters
| Name | Type | Description |
|---|---|---|
filenamerequired | string | Original filename with extension (e.g. 'invoice.pdf') |
byte_sizerequired | integer | File size in bytes |
checksumrequired | string | Base64 MD5 checksum of the file |
content_typerequired | string | MIME type (e.g. 'application/pdf', 'image/png') |