MessageAttachments

A presigned PUT for one file. The type and size are checked here so the composer can say no before uploading; they are checked again against the stored bytes at send time, since a presigned PUT can't enforce either.

Changed on
post/message-attachments/upload-url

Request

Request body

fileNamestring required
contentTypestring required
clientIdstring nullable

The client being messaged. The upload is bound to them and refused on another client's conversation. Omitted for a message to a new contact.

Response

OK

uploadUrlstring required
expiresAtstring date-time required
attachmentIdstring required
fileNamestring required
contentTypestring required

Changes