> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aigenda.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Отправить бота на встречу

> Бот AiGenda подключится к встрече в Zoom, Google Meet или Яндекс Телемосте и запишет её в пространство.

## Параметры пути

<ParamField path="space_id" type="integer" required>
  Идентификатор пространства.
</ParamField>

## Тело запроса

<ParamField body="link" type="string" required>
  Ссылка-приглашение на встречу, до 255 символов. Форматы: [Бот на встречу](/upload/meeting-bot).
</ParamField>

<ParamField body="meeting_service" type="string" required>
  Площадка: `telemost`, `zoom` или `google_meet`. Формально необязательное, но без него AiGenda считает встречу Google Meet.
</ParamField>

## Ответ

<ResponseField name="id" type="integer">
  Идентификатор отправки бота.
</ResponseField>

<ResponseField name="link" type="string">
  Ссылка на встречу.
</ResponseField>

<ResponseField name="meeting_service" type="string">
  Площадка, которую AiGenda будет использовать.
</ResponseField>

В адресе `space` в единственном числе. Обработка записи запускается сама после встречи. Ошибки `400` с `"code": 4` (меньше 5 минут на тарифе) и `"code": 5` (в пространстве уже есть активная встреча с ботом): [Бот на встречу](/upload/meeting-bot).

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.aigenda.tech/api/space/1024/meeting/" \
    -H "Authorization: Bearer <access>" \
    -H "Content-Type: application/json" \
    -d '{
      "link": "https://telemost.yandex.ru/j/12345678901234",
      "meeting_service": "telemost"
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.aigenda.tech/api/space/1024/meeting/",
      headers={"Authorization": "Bearer <access>"},
      json={
          "link": "https://telemost.yandex.ru/j/12345678901234",
          "meeting_service": "telemost",
      },
      timeout=30,
  )
  response.raise_for_status()
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.aigenda.tech/api/space/1024/meeting/", {
    method: "POST",
    headers: { Authorization: "Bearer <access>", "Content-Type": "application/json" },
    body: JSON.stringify({
      "link": "https://telemost.yandex.ru/j/12345678901234",
      "meeting_service": "telemost"
    }),
  });
  const data = await response.json();
  console.log(data);
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "id": 3141,
    "link": "https://telemost.yandex.ru/j/12345678901234",
    "meeting_service": "telemost"
  }
  ```

  ```json 400 theme={null}
  {
    "detail": "User already start meeting",
    "code": 5
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.