attachments

Request a presigned URL for uploading an attachment

post/v1/attachments/uploads

Request

  • Base URL
    https://app.legend.trade/api/rest
  • URL
    https://app.legend.trade/api/rest/v1/attachments/uploads
  • Auth
    HTTP bearer

Request body

filenamestring required
mimeTypestring required
fileSizeinteger required
type'image' | 'video' | 'file' | 'audio' | 'gif' | 'sticker' required
widthinteger
heightinteger
blurHashstring
durationinteger

Response

Successful response

attachmentIdstring uuid required
uploadUrlstring uri required
s3Keystring required
urlstring uri required

Changes

No recorded changes to this operation across all 87 revisions of this API.