{{baseUrl}}/messages/

POST {{baseUrl}}/messages/

This method allows you to send an sms message directly from our gateway

Request Body

{"sender"=>"<string>", "body"=>"<string>", "recipients"=>"<string>", "test"=>"<boolean>", "priority"=>"<double>", "options"=>{"flash"=>"<boolean>", "timestamp_send"=>"<string>", "custom"=>"<string>", "callback_url"=>"<string>", "callback_field"=>"<string>", "realtime"=>"<boolean>"}, "transaction"=>"<boolean>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;data&quot;:[{&quot;test&quot;:false,&quot;sender&quot;:&quot;alberto&quot;,&quot;body&quot;:&quot;test invio&quot;,&quot;recipients&quot;:{&quot;valid&quot;:{&quot;count&quot;:1},&quot;invalid&quot;:{&quot;total&quot;:0,&quot;list&quot;:[]}},&quot;transaction&quot;:false,&quot;options&quot;:{&quot;flash&quot;:false,&quot;realtime&quot;:false,&quot;timestamp_send&quot;:&quot;1564752494920&quot;},&quot;statistics&quot;:{&quot;error&quot;:0,&quot;sent&quot;:0,&quot;delivered&quot;:0,&quot;total&quot;:1,&quot;sms_total&quot;:1},&quot;base_price&quot;:0.0315,&quot;timestamp&quot;:&quot;1564752494920&quot;,&quot;last_update&quot;:&quot;1564752494920&quot;,&quot;priority&quot;:1,&quot;price&quot;:0.0315,&quot;state&quot;:0,&quot;id&quot;:&quot;5d443a6e9f2725660f3db347&quot;}],&quot;message&quot;:&quot;Message Queued&quot;,&quot;credit&quot;:&quot;90.90849999999988&quot;,&quot;success&quot;:true,&quot;error&quot;:null}