Menu


Send SMS online, send anonymous sms, send text message, send SMS, send text message to phone
Send SMS online, send anonymous sms, send text message, send SMS, send text message to phone

5YSMS HTTP API

Hypertext Transfer Protocol (HTTP) is the life of the web. Our 5YSMS HTTP API allows you to interact with our system programmatically from your own application by HTTP Request. Moreoever, you can easily use our services by only HTTP Request.

 

Retrieve user information

HTTP GET http://api.5ysms.com/getInfo.php?user=<username>&pass=<password>&lang=<language> 

If the username and password are matched and the request is valid, the response will be JSON with user id and its remaining credit.

RESPONSE

PARAMETERS

Parameter Description
user An active username in our system
pass The password of your username
lang The language that the active user is using with. Value: English or EN or 1, Français or FR or 2 and Español or ES or 3
id The id of current user
C The remaining credit of user.

 

Retrieve the remaining credit of user

HTTP GET http://api.5ysms.com/getcredit.php?user=<username>&pass=<password>&lang=<language> 

If the username and password are matched and the request is valid, the response will be JSON that contains the user credits

RESPONSE

PARAMETERS

Parameter Description
user An active username in our system
pass The password of your username
lang The language that the active user is using with. Value: English or EN or 1, Français or FR or 2 and Español or ES or 3
C The remaining credit of user.

 

Retrieve the list of messages that were alreay sent with the user.

HTTP GET http://api.5ysms.com/listmsgsent.php?user=<username>&pass=<password>&lang=<language> 

If the username and password are matched and the request is valid, the response will be JSON that contains the list of sent messages.

RESPONSE

PARAMETERS

Parameter Description
user An active username in our system
pass The password of your username
lang The language that the active user is using with. Value: English or EN or 1, Français or FR or 2 and Español or ES or 3
number The recipient phone number.
message The message content.

 

Send message

HTTP GET http://api.5ysms.com/sendmsg.php?user=<username>&pass=<password>&from=<from>&to=<number>&msg=<message>&unicode=<unicode>&credit=<numberOfCredit>&lang=<language>

If the username and password are matched and the request is valid, the response will be JSON that contains the status of message.

RESPONSE

PARAMETERS

Parameter Description
user An active username in our system
pass The password of your username
lang The language that the active user is using with. Value: English or EN or 1, Français or FR or 2 and Español or ES or 3
number The recipient phone number.
msg The message content.
unicode The message ENCODING. Value: true or false
numberOfCredit Optional: Number of credit. Value: 1, 2 or 3. Number of credit depends on message length
from The sender name or phone number. Value: 5ySMS or Random

 

Retrieve the sender information

HTTP GET http://api.5ysms.com/getSender.php

RESPONSE