Mailboxes
Copy a message attachment
Copies one of a received message's attachments into the organization's media and returns it as a draft attachment (`mediaId`), so a draft can carry it.
Copies one of a received message's attachments into the organization's media and returns it as a draft attachment (mediaId), so a draft can carry it. A draft that forwards a message saves each original attachment this way.
Authorization
apiKey x-api-key<token>
In: header
Path Parameters
id*string
Match
^mbx_[0-9a-hjkmnp-tv-z]{16,24}$messageId*string
Match
^msg_[0-9a-hjkmnp-tv-z]{16,24}$attachmentId*string
Match
^att_[0-9a-hjkmnp-tv-z]{16,24}$Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/mailboxes/string/messages/string/attachments/string/copy"{ "filename": "string", "content": "string", "mediaId": "string", "contentType": "string", "size": 1}