/
BulkGate developer documentation
/
Simple API
/
Transactional SMS – request methods
Transactional SMS – request methods
Request examples for the simple/transactional endpoint in every supported method. For the meaning of the parameters see the specification ; for ready-made code in individual languages see the examples .
It is strictly prohibited to exploit transactional SMS for promotional/marketing uses. It must be used for notification purposes only - as an SMS notification.
GET method
Example of full request:
https:// portal.bulkgate.com /api/1.0/simple/transactional
? application_id = 451
& application_token = NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj
& number = 447700900000
& text = test_sms
& unicode = yes
& sender_id = gText
& sender_id_value = BulkGate
& country = gb
Example of request with country prefix:
https:// portal.bulkgate.com /api/1.0/simple/transactional
? application_id = 451
& application_token = NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj
& number = 7700900000
& text = test_sms
& country = gb
POST method - application/x-www-form-urlencoded
Example of full request:
POST /api/1.0/simple/transactional HTTP/1.1
Host : portal.bulkgate.com
Content-Type : application/x-www-form-urlencoded
application_id=451&application_token=NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj&number=447700900000&text=test_sms&unicode=yes&sender_id=gText&sender_id_value=BulkGate&country=gb
Example of request with country prefix:
POST /api/1.0/simple/transactional HTTP/1.1
Host : portal.bulkgate.com
Content-Type : application/x-www-form-urlencoded
application_id=451&application_token=NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj&number=7700900000&text=test_sms&country=gb
POST method - application/json
Example of full request:
POST /api/1.0/simple/transactional HTTP/1.1
Host : portal.bulkgate.com
Content-Type : application/json
{
"application_id" : 451,
"application_token" : "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj" ,
"number" : "7700900000" ,
"text" : "test_sms" ,
"unicode" : true,
"sender_id" : "gText" ,
"sender_id_value" : "BulkGate" ,
"country" : "gb"
}
Example of request with country prefix:
POST /api/1.0/simple/transactional HTTP/1.1
Host : portal.bulkgate.com
Content-Type : application/json
{
"application_id" : 451,
"application_token" : "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj" ,
"number" : "7700900000" ,
"text" : "test_sms" ,
"country" : "gb"
}
Was this page helpful?
thumb_up Yes
thumb_down No
Thank you for your feedback.