{{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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"data":[{"test":false,"sender":"alberto","body":"test invio","recipients":{"valid":{"count":1},"invalid":{"total":0,"list":[]}},"transaction":false,"options":{"flash":false,"realtime":false,"timestamp_send":"1564752494920"},"statistics":{"error":0,"sent":0,"delivered":0,"total":1,"sms_total":1},"base_price":0.0315,"timestamp":"1564752494920","last_update":"1564752494920","priority":1,"price":0.0315,"state":0,"id":"5d443a6e9f2725660f3db347"}],"message":"Message Queued","credit":"90.90849999999988","success":true,"error":null}