Outbound Messages
Upload message attachment
Changed on<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Messages%3A%20Send%0A/uploadMessageAttachment" target="_blank">Try in sandbox</a><br>Upload a new file to insert it as a link.
post/api/v2/messages/attachment
Request
- Base URLhttps://rest.textmagic.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body multipart/form-data
Response
File uploaded with success.
Example response
{
"chars": 10,
"href": "click/Zwcj9",
"name": "test.pdf",
"size": 1094,
"resource": "tmfGSR8ShMSDMy8Aa15904809817838.jpg"
}Changes
- breaking
removed the success response with the status
- info
added the success response with the status
- breaking