latestSwagger 2.02026-08-101561322.2 MB
3e4029d19684
Outbound Messages
Send message
<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Messages%3A%20Send%0A/sendMessage" target="_blank">Try in sandbox</a><br>This is the main entrypoint to send messages. See the examples above for the reference.
post/api/v2/messages
Request body
Example request
{
"text": "Hello, how are you?",
"templateId": 1,
"sendingTime": 1565606455,
"sendingDateTime": "2020-05-27 13:02:33",
"sendingTimezone": "America/Buenos_Aires",
"contacts": "1,2,3,4",
"lists": "1,2,3,4",
"phones": "447860021130,447860021131",
"cutExtra": true,
"partsCount": 6,
"referenceId": 1,
"from": "Test sender id",
"rrule": "FREQ=YEARLY;BYMONTH=1;BYMONTHDAY=1;COUNT=1",
"localCountry": "US",
"destination": "mms",
"resources": "tmauKcSmwflB77kLQ15904023426649.jpg"
}Response
Returned when successful.
Example response
{
"id": 10489,
"href": "/api/v2/sessions/10489",
"type": "session",
"sessionId": 10489
}