Upload a file attachment. Uses multipart form data.
| Field | Type | Required | Description |
|---|---|---|---|
file | File | Yes | The file to upload |
messageId | string | No | Link attachment to a message |
Response:
Returns a short-lived browser-renderable URL after authenticating the caller and verifying access to
the parent channel. Store only the attachment url / content reference returned by upload;
do not persist this signed URL.
Response:
Does not require a Bearer token. The token binds the bucket/key, content type, disposition, and
expiration. Active content such as HTML, SVG, JavaScript, and XML is always delivered as an
attachment even when inline was requested. Responses include Cache-Control: private,
X-Content-Type-Options: nosniff, and support Range requests.