latestSwagger 2.02026-08-101561322.2 MB

3e4029d19684

Outbound Messages

Upload message mms attachment

<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Messages%3A%20Send%0A/uploadMessageMMSAttachment" target="_blank">Try in sandbox</a><br>Upload a new file to mms.

post/api/v2/messages/mms/attachment

Response

File uploaded with success.

charsinteger required

href field characters count.

hrefstring required

This is a relative link to your file. To construct a full link, just add “https://my.textmagic.com/” to the beginning (like this: https://my.textmagic.com/click/Zwcj9). For most modern devices, you can omit the “https://” part and write just my.textmagic.com/click/Zwcj9, which will save you 8 characters.

namestring required

File name of the uploaded file.

sizeinteger required

Attachment size in bytes.

resourcestring required

Internal file name

Example response

{
  "chars": 10,
  "href": "click/Zwcj9",
  "name": "test.pdf",
  "size": 1094,
  "resource": "tmfGSR8ShMSDMy8Aa15904809817838.jpg"
}