# Распространение карт

**Описание:** \
Для распространения ссылок на карты с помощью SMS и Email используется метод **distribute**. Шаблоны Email и SMS задаются в личном кабинете. Пожалуйста, тестируйте тексты смс и вид email перед массовыми отправками.

**Как использовать:** \
Например, помощью данного метода можно реализовать кнопки отправки ссылок на карты в SMS или Email в вашей POS или создать такие кнопки на сайте для удобства установки карт на десктопной версии. &#x20;

## distribute

<mark style="color:green;">`POST`</mark> `https://getpass.passteam.ru/oapi/v1/distribute`

#### Request Body

| Name                 | Type   | Description                                              |
| -------------------- | ------ | -------------------------------------------------------- |
| templateId           | string | Идентификатор шаблона (Обязательно)                      |
| cards\[0]\[cardId]   | string | Идентификатор карты (Обязательно)                        |
| cards\[0]\[type]\[1] | string | Способ отправки ссылки для установки карты (Обязательно) |

{% tabs %}
{% tab title="200 " %}

```
{
	"result": true,
	"message": "OK",
	"code": 200,
	"error": false
}	
```

{% endtab %}
{% endtabs %}


---

# 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://passteam.gitbook.io/passteam-api-v1/rasprostranenie-kart.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.
