Pricing plans  Services  API  Partners  About the service  Contacts 
8 (800) 700 7672
Free in Russia
 

Integration with the service (API)

The API allows you to send messages through your projects and services over HTTP/HTTPS, SMTP and SMPP protocols. Ready-made libraries in different programming languages connect to your project and help you send messages from anywhere with a single command. For simplified authorization, instead of a login and password pair, you can use a special API key.


HTTP/HTTPS SMTP SMPP SOAP OMS SMS Commands Libraries and code examples

MESSAGES SENDING

Sending an SMS message

Comments in SMS messages

Sending to a group of numbers

Sending an HLR request

Sending an e-mail message

Sending a voice message (call)

Sending a viber message

Sending a message to Telegram

Sending a message to the Telegram chatbot

Sending a message to Whatsapp

Using prefixes when sending messages

Managing message templates

Managing operator templates

Virtual sending (test mode)

Event Notifications

MANAGING MAILING LISTS

MESSAGE STATUSES

CHECKING THE BALANCE STATUS

MANAGING CONTACTS

CLIENT MANAGEMENT

MANAGING SENDER NAMES (SENDER ID)

GETTING DATA

VARIOUS

Sending a message to Whatsapp

To send a message to Whatsapp, you must use the GET or POST method to call the address: https://smscentre.com/sys/send.php?login=<login>&psw=<password>&phones=<phones>&mes=<message>&bot=<wa:botnumber>

File Transfer

Sending a picture or video in a message is possible in one of the following ways:
  • в виде полного http(s)-адреса внешнего или загруженного в систему файла, указанного в тексте сообщения, в формате <file http(s)://...>. Для файлов, загруженных в систему в личном кабинете на странице "Медиа файлы" возможно указание прямой ссылки на файл в виде https://smscentre.com/files/sms/..., либо сокращенной <file /files/sms/...>;
  • by the POST method in the body of an http(s) request to the server. With this method of sending, the attached file must be designated in the message text in a special way in the form of "<file 1>";
  • by adding a special additional fileurl parameter to http(s), containing the full http(s) address of the transmitted external file. When using fileurl, passing the mes parameter in the request is optional.
The attached file must not exceed 10 MB in size and must comply with one of the following formats:
  • jpg, jpeg, png – for pictures;
  • 3gp, mp4 – for the video.
Before using the linked message texts, you must register them in the templates..

Adding a button

To insert buttons into a message, add a special macro {button,type:param,text} to the message text, where:
<button> – required tag pointing to the button.
<text> – the label on the button.
<type> – the type of button. It can take one of the following values:
  • tel – phone number (in this case, the number for the call is sent to param, with or without the "+" sign);
  • code – clicking on this type of button will copy the code to the clipboard. (colon and param are not passed.);
  • otp_type – sending the code to the client's application (the colon and param are not passed, but additional parameters are required for the application, separated by commas after the text.).
If the type value is different, the button will be interpreted as a url click..

Examples:
{button,tel:+79999999999,Call}
{button,https://smscentre.com/,Go}
{button,code,Copy code}
{button,otp_type,Enter,autofill_text,package_name,signature_hash}

Before using the message texts with buttons, you must register them in the templates..

Examples of sending messages in Whatsapp

Examples:

Sending a message with the text "Hello" to the number "79999999999" in whatsapp "wa:79888888888":

https://smscentre.com/sys/send.php?login=alex&psw=123&phones=79999999999&mes=Hello&bot=wa:79888888888

Sending a message with the text "Hello" and a link to the picture to the number "79999999999" in whatsapp "wa:79888888888":

https://smscentre.com/sys/send.php?login=alex&psw=123&phones=79999999999&mes=Hello <file https://mysite.ru/picture.jpg>&bot=wa:79888888888

Sending a message with the text "Call me" and a button to the number "79999999999" in whatsapp "wa:79888888888":

https://smscentre.com/sys/send.php?login=alex&psw=123&phones=79999999999&mes=Call me {button,tel:+79999999999,Call}&bot=wa:79888888888