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.
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..