# Отправка SMS

## Отправка SMS

<mark style="color:blue;">`GET`</mark> `http://lk.mysmpp.ru/sendsms.php`

#### Request Body

| Name                                            | Type   | Description                                                                                                                                                                                    |
| ----------------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| user<mark style="color:red;">\*</mark>          | String | Ваш логин в системе                                                                                                                                                                            |
| validity\_period                                | Int    | <p>Время жизни SMS (по умолчанию 2 дня)</p><p>Дата и время в формате:</p><p>YYYY-MM-DD HH:MM</p><p> где,<br>   YYYY-год,<br>   MM-месяц,<br>   DD-день,<br>   HH-часы, </p><p>   MM-минуты</p> |
| text<mark style="color:red;">\*</mark>          | String | Текст сообщения                                                                                                                                                                                |
| dadr<mark style="color:red;">\*</mark>          | Int    | Адрес получателя (множество адресов, через запятую)                                                                                                                                            |
| sadr<mark style="color:red;">\*</mark>          | String | Адрес отправителя                                                                                                                                                                              |
| type\_send\_1<mark style="color:red;">\*</mark> | String | Тип отправляемого сообщения (**`sms`**)                                                                                                                                                        |
| token<mark style="color:red;">\*</mark>         | String | Вместо логина и пароля можно использовать секретный ключ. Для его получения обратитесь к менеджеру                                                                                             |
| pwd<mark style="color:red;">\*</mark>           | String | Ваш пароль в системе                                                                                                                                                                           |

{% tabs %}
{% tab title="200: OK Ответ GET запроса SMS" %}
В ответ будет направлен номер SMS сообщения **`id_sms`**. Используется для проверки статуса SMS.
{% endtab %}
{% endtabs %}

### Пример запроса через браузер

<pre data-overflow="wrap"><code><strong>http://lk.mysmpp.ru/sendsms.php?user=ваш_логин_в_нашей_системе&#x26;pwd=пароль&#x26;sadr=от_кого_придет_СМС&#x26;dadr=номер_телефона_получателя_сообщения&#x26;text=текст_смс
</strong></code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidocs.webcom.mobi/ru2/type/specifikaciya-http-get/otpravka-sms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
