# Sending SMS

## Sending 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 | Your login in the system                                                                                                                                                                         |
| validity\_period                                | Int    | <p>SMS lifetime (default 2 days) Date and time in format:</p><p>YYYY-MM-DD HH:MM</p><p> where,<br>   YYYY - year,<br>   MM - month,<br>   DD - day,<br>   HH - hours, </p><p>   MM - minutes</p> |
| text<mark style="color:red;">\*</mark>          | String | Message Text                                                                                                                                                                                     |
| dadr<mark style="color:red;">\*</mark>          | Int    | Recipient address (multiple addresses, separated by commas)                                                                                                                                      |
| sadr<mark style="color:red;">\*</mark>          | String | Sender's address                                                                                                                                                                                 |
| type\_send\_1<mark style="color:red;">\*</mark> | String | Type of message to be sent (**`sms`**)                                                                                                                                                           |
| token<mark style="color:red;">\*</mark>         | String | You can use a secret key instead of login and password. To obtain it, please contact your manager                                                                                                |
| pwd<mark style="color:red;">\*</mark>           | String | Your password in the system                                                                                                                                                                      |

{% tabs %}
{% tab title="200: OK SMS GET request response" %}
SMS message **`id_sms`** number will be sent in response. Used to check the status of SMS.
{% endtab %}
{% endtabs %}

### Example of a browser request

{% code overflow="wrap" %}

```
http://lk.mysmpp.ru/sendsms.php?user=login&pwd=password&sadr=sender&dadr=phone&text=message
```

{% endcode %}


---

# 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/en/sposoby-vzaimodeistviya-s-a2p-platformoi/http-get-specification/sending-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.
