Logo
Openapi.it Public API Documentation

{{baseUrl}}/messages/

POST {{baseUrl}}/messages/

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

 

Body PARAM

Key Datatype Required Description 



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 }



Curl
curl -X POST 'baseUrl/messages/' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"sender":"\u003cstring\u003e","body":"\u003cstring\u003e","recipients":"\u003cstring\u003e","test":"\u003cboolean\u003e","priority":"\u003cdouble\u003e","options":{"flash":"\u003cboolean\u003e","timestamp_send":"\u003cstring\u003e","custom":"\u003cstring\u003e","callback_url":"\u003cstring\u003e","callback_field":"\u003cstring\u003e","realtime":"\u003cboolean\u003e"},"transaction":"\u003cboolean\u003e"}'

ENDPOINTS