Send SMS

If you wish to send SMS via HTTP API, please contact us at support@miatel.com stating your Miatel account and the IP addresses to whitelist.

Endpoint

https://sms-hub.miatel.ru:4849/sendsms?

Request Parameters

username

string

Username or account name

password

string

The password associated with the given username

from

string

Sender ID (SRC-number)

to

string

Recipient's phone number (DST-number).

text

string

Text of SMS. If the content does not fit into the maximum message size according to the currently set encoding, the message will be split into multiple messages.

Request Example

https://sms-hub.miatel.ru:4849/sendsms?username=client&password=98765&to=	6585911223&text=TEST

Response

You will get HTTP 202 response if the request was sent successfully, and HTTP 404 if there was an error.

Response template

<html><body>request_code: request_description. id:message_id. count:dlvrd_count. code:code_number</body></html>

Used response parameters:

NameTypeDescription

request_code

number

The code of the delivery message (0 - Accepted; 4 - Failed)

request_description

string

Description of the delivery message code

message_id

string

The unique identifier of the send message

dlvrd_count

number

Number of short messages delivered. The value may be padded with leading zeros.

status_code

number

code_number

number

Example responses

<html><body>0: Accepted for delivery. id:1111e111-2d22-3c33-4b44-55555a555555. count:1. code:0</body></html>

Last updated