> ## 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.

# Send a bot to a meeting

> The AiGenda bot joins a Zoom, Google Meet, or Yandex Telemost meeting and records it to the space.

## Path parameters

<ParamField path="space_id" type="integer" required>
  Space ID.
</ParamField>

## Request body

<ParamField body="link" type="string" required>
  Meeting invitation link, up to 255 characters. Formats: [Meeting bot](/en/upload/meeting-bot).
</ParamField>

<ParamField body="meeting_service" type="string" required>
  Platform: `telemost`, `zoom`, or `google_meet`. Formally optional, but without it AiGenda treats the meeting as Google Meet.
</ParamField>

## Response

<ResponseField name="id" type="integer">
  ID of the bot request.
</ResponseField>

<ResponseField name="link" type="string">
  Meeting link.
</ResponseField>

<ResponseField name="meeting_service" type="string">
  Platform AiGenda will use.
</ResponseField>

The path uses the singular `space`. Processing of the recording starts on its own after the meeting. `400` errors with `"code": 4` (less than 5 minutes on the plan) and `"code": 5` (an active meeting with the bot already exists in the space): [Meeting bot](/en/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.