SMS API - mobile text message access

The SMS API allows you to send and receive messages using a standard application using HTML POST and GET commands. Most programming languages support these methods.

Sending SMS via HTTP POST/GET (Post Values)

account_no VoiceHost Account No
password VoiceHost Account Password
to_number Mobile Number To Send Message To
from_number Telephone Number SMS Sent From
message 160 Characters For Message

HTTP POST Location: http://url.com/sms_send

Response Codes:

0 Message Sent
1 Invalid Login
2 Not Enough Credit

 

Receiving SMS via HTTP POST: (Post Values)

to_number Telephone Number The SMS Was Sent To
from_number Telephone Number That Sent The Message
message 160 Characters Containing The Message
time The Time The SMS Was Sent

 

To receive SMS messages your script must be accessible via the internet. To configure the SMS system to deliver SMS's to your script, please login to your VoiceHost control panel and select 'Telephone Numbers'. Select the advanced configuration icon to the left of the telephone number you would like to configure.
In the 'SMS Receive' section select 'HTTP Post (Advanced)' from the 'Action Type' drop down. In the address field, enter the full address of your script. When an SMS is received they will automatically be delivered to your SMS script.

 

Help Tags: 

Videos

Call Encryption - TLS/SRTP walkthrough
Embedded thumbnail for Call Encryption - TLS/SRTP walkthrough
Hosted Directory LDAP - Lightweight Directory Access Protocol
Embedded thumbnail for Hosted Directory LDAP - Lightweight Directory Access Protocol
Cloud PBX Explainer
Embedded thumbnail for Cloud PBX Explainer
Zoiper Softphone Configuration
Embedded thumbnail for Zoiper Softphone Configuration
Call Conferencing
Embedded thumbnail for Call Conferencing
Receptionist Console
Embedded thumbnail for Receptionist Console

Search Help Portal

Get in touch

VoiceHost Limited
Norfolk Tower
Surrey Street
Norwich
NR1 3PA

UK Freephone 0800 2 545454

International +44 1603904090

support [at] voicehost.co.uk

Connect With Us

Download the iOS App from the Apple App Store

Get the Android app from the Google Play store