> For the complete documentation index, see [llms.txt](https://help.onebot.tech/onebot-help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.onebot.tech/onebot-help/rabota-s-api-platformy/rassylka.md).

# Рассылка

## Отправить текстовое сообщение

<mark style="color:green;">`POST`</mark> `https://app.onebot.tech/api/v1/sendMessageToQueue`

#### Request Body

| Name                | Type    | Description                                                                                |
| ------------------- | ------- | ------------------------------------------------------------------------------------------ |
| message\_id         | String  | Уникальный id сообщения                                                                    |
| text                | String  | Текст сообщения                                                                            |
| contact\_id         | Integer | ID контакта LeadTex. Обязательный параметр когда `bitrix_contact_id` и phone не переданы   |
| bitrix\_contact\_id | Integer | ID контакта Битрикса (обязательный параметр когда `contact_id` и phone не переданы)        |
| phone               | String  | Номер телефона (обязательный параметр когда bitrix\_contact\_id и contact\_id не переданы) |

{% tabs %}
{% tab title="201: Created Сообщение успешно добавлено в очередь на отправку" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}
