HTTP API
The basic construct of our API is as follows.
Parameters
The ToucanText user name as provided
Your password as generated during sign up
Either an alphanumeric sender or an inbound number to use as the sender. Numbers should be specified in the format 441234 567890 (note: + is not required)
The mobile number of the destination for the message. Numbers should be specified in the format 441234 567890 (note: + is not required)
The message content
Get the Code
The DESTADDR parameter should be the destination number to send the message to in the format cc = Country code and nnnnnnnnnn is the phone number (with the leading 0 removed if present) i.e. 447123456789
https://api.toucantext.com/bin/send.xml?USERNAME
=apiusername&PASSWORD
=apipassword&DESTADDR
=ccnnnnnnnnnn&MESSAGE
=messagecontent
Set the sender in a call
It is also possible to set the sender in a call, to do this you pass the SOURCEADDR in the URL. The SOURCEADDR can either be passed as a correctly formatted number (in the same format as the DESTADDR) or can be specified as alphanumeric text.
Numeric
https://api.toucantext.com/bin/send.xml?USERNAME
=apiusername&PASSWORD
=apipassword&SOURCEADDR
=ccnnnnnnnnnn&DESTADDR
=ccnnnnnnnnnn&MESSAGE
=messagecontent
Alphanumeric
https://api.toucantext.com/bin/send.xml?USERNAME
=apiusername&PASSWORD
=apipassword&DESTADDR
=alphanumerictext&MESSAGE
=messagecontent