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
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
Response
You will get HTTP 202 response if the request was sent successfully, and HTTP 404 if there was an error.
Response template
Used response parameters:
Name | Type | Description |
---|---|---|
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
Last updated