HTTP(S)

The 2sms HTTP API is used to send text messages by posting the message content and destination information in a HTTP(S) GET command, using a query string to build up the information needed by 2sms in order to deliver an SMS message.

Customers can send over HTTP or HTTP(S). We recommend HTTP(S) to ensure encryption of information sent to 2sms. Messages sent can be tracked on the web site or using our XML reporting services.

Note:

Customers wishing to use HTTP(S) POST instead of HTTP(S) GET command should choose our XML services in place of this solution.

Specifications

URLhttps://www.2sms.com/xml/sendsms.aspx?username=
$USERNAME&password=$PASSWORD&mobile=$PHONE&sms=
$MESSAGE&api_id=$APIID
Username2sms issued username
Password2sms issued password
PhoneDestination mobile number
MessageSimple text message
API IDaction=sendmessage

Scroll to Top