v1

latestOpenAPI 3.0.02026-07-174565114.3 KB
storage

Get a presigned URL for direct S3 upload

Returns a presigned URL that allows direct file upload to S3. The client should PUT the file directly to the returned uploadUrl.

post/storage/presign

Request body

contentTypestring required

The MIME type of the file

sizenumber required

The file size in bytes (max 10MB)

Example request

{
  "contentType": "application/pdf",
  "size": 1024000
}

Response

Presigned URL generated successfully

uploadUrlstring required

The presigned URL to PUT the file directly to S3

attachmentUristring required

The attachment URI to reference this file in messages

expiresInnumber required

Time in seconds until the presigned URL expires

Example response

{
  "uploadUrl": "https://s3.amazonaws.com/bucket/key?X-Amz-Signature=...",
  "attachmentUri": "attachment://p_u2tgQg5U.43bbdf/Ab3xY9kLmN",
  "expiresIn": 3600
}