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

# Список пространств

> Пространства, в которых вы состоите, с тарифом и остатком минут. Личное отмечено is_main_space: true.

## Параметры запроса

<ParamField query="limit" type="integer">
  Сколько элементов на странице.
</ParamField>

<ParamField query="offset" type="integer">
  Сколько элементов пропустить.
</ParamField>

## Ответ

<ResponseField name="count" type="integer">
  Всего пространств.
</ResponseField>

<ResponseField name="results[].is_main_space" type="boolean">
  Личное пространство аккаунта.
</ResponseField>

<ResponseField name="results[].space.id" type="integer">
  `space_id` для остальных запросов.
</ResponseField>

<ResponseField name="results[].space.name" type="string">
  Название.
</ResponseField>

<ResponseField name="results[].space.subscribe" type="object">
  Тариф и минуты, значения в секундах. См. [Пространства и минуты](/spaces).
</ResponseField>

Ссылки `next` и `previous` приходят со схемой `http://`. Собирайте следующую страницу сами через `limit` и `offset`.

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.aigenda.tech/api/spaces/?limit=50&offset=0" \
    -H "Authorization: Bearer <access>"
  ```

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

  response = requests.get(
      "https://api.aigenda.tech/api/spaces/",
      headers={"Authorization": "Bearer <access>"},
      params={
          "limit": 50,
          "offset": 0,
      },
      timeout=30,
  )
  response.raise_for_status()
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.aigenda.tech/api/spaces/?limit=50&offset=0", {
    method: "GET",
    headers: { Authorization: "Bearer <access>" },
  });
  const data = await response.json();
  console.log(data);
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
      {
        "is_main_space": true,
        "space": {
          "id": 1024,
          "name": "Личное пространство",
          "description": "Main space",
          "subscribe": {
            "offer": {
              "name": "PRO",
              "audio_limit": 72000
            },
            "usage_count": 5400,
            "available_usage_count": 66600,
            "is_active": true,
            "end_date": "2026-11-17"
          }
        }
      }
    ]
  }
  ```
</ResponseExample>


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