Movie Planner Groups API

The Groups API from Movie Planner — 5 operation(s) for groups.

GitHub OpenAPI

Operations 7

GET /v1/groups/{chat_id}/plans Предстоящие планы явно выбранной группы #
POST /v1/groups/{chat_id}/plans Создать план в явно выбранной группе #
DELETE /v1/groups/{chat_id}/plans/{plan_id} Удалить один план явно выбранной группы #
GET /v1/groups Список групп пользователя (виртуальные комнаты и привязанные чаты) #
POST /v1/groups Создать виртуальную группу #
POST /v1/groups/{chat_id}/invite Создать invite-ссылку для группы (если пользователь состоит в группе) #
POST /v1/groups/{chat_id}/share-film Предложить фильм в группу (group feed) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/movie-planner-ru:movie-planner-ru-groups-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

movie-planner-ru-groups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Movie Planner Unified Groups API
  version: 1.2.2
  description: 'Единый API для Mini App, сайта movie-planner.ru, Chrome-расширения и

    нативных мобильных приложений (React Native).


    Билеты (`POST /v1/plans/{id}/tickets`) поддерживаются только для планов с `plan_type: cinema`.

    Для кино в `POST /v1/plans` передавайте реальное название и/или адрес кинотеатра; **не передавайте заглушки**

    вроде одного слова «Кинотеатр» без адреса — геокодер интерпретирует это как запрос и может выбрать случайную точку в городе.

    Если адрес пользователя ещё неизвестен, **опустите** `cinema_name` и `cinema_address`.

    При осмысленной строке и отсутствии координат сервер при `YANDEX_GEOCODER_API_KEY` нормализует адрес и подставит `cinema_lat` / `cinema_lon`.

    События в Google Calendar и .ics получают человекочитаемое описание (ссылка на Кинопоиск, кинотеатр, Яндекс.Карты).


    MCP Streamable HTTP: `/mcp` — те же Bearer-токены, что для `/v1` (инструменты для Cursor / Claude Desktop).


    Три группы авторизации:

    • `/api/miniapp/*` — Telegram Mini App (initData) ИЛИ Bearer JWT (RN).

    • `/api/site/*` — Bearer token из site_sessions.

    • `/v1/*` — версия API для агентов; Bearer = JWT, site session или OAuth token.

    Для OAuth: если при authorize указан непустой `scope`, на /v1 проверяются права

    (profile.read, movies.read/write, plans.read/write, calendar.read). Пустой scope у OAuth = полный доступ.

    • `/oauth/*` — OAuth2 code + PKCE: authorize (нужен уже залогиненный Bearer) и token.

    • `/api/extension/*` — chat_id query param (legacy).

    • `/api/auth/*` — регистрация / refresh / me, выдаёт JWT пары.

    • `/api/push/register` — FCM-токен устройств RN.

    • `/api/maps/*` — общие maps-подсказки (без авторизации).


    Стабильные поля в ответах всех плановых/фильмовых эндпоинтов совместимы,

    что даёт возможность генерировать единый клиент (openapi-typescript).'
servers:
- url: https://web-production-3921c.up.railway.app
  description: Production
security:
- BearerAuth: []
- SiteSession: []
tags:
- name: Groups
paths:
  /v1/groups/{chat_id}/plans:
    parameters:
    - in: path
      name: chat_id
      required: true
      schema:
        type: integer
      description: Точный chat_id из списка групп; поддерживаются отрицательные идентификаторы.
    get:
      tags:
      - Groups
      summary: Предстоящие планы явно выбранной группы
      description: 'Для OAuth нужны plans.read и groups.read; пользователь должен состоять в группе.

        Возвращает home, cinema и premieres, как GET /v1/plans.

        Каждая запись содержит id и дополнительный plan_id, year, created_by_user_id.'
      security:
      - BearerAuth: []
      - SiteSession: []
      responses:
        '200':
          description: Список планов группы.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlansList'
        '401':
          description: unauthorized
        '403':
          description: insufficient_scope или not_member
      operationId: getV1GroupsByChatIdPlans
      x-operation-id-source: derived
    post:
      tags:
      - Groups
      summary: Создать план в явно выбранной группе
      description: Для OAuth нужны plans.write и groups.write; применяются права создания планов группы.
      security:
      - BearerAuth: []
      - SiteSession: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - plan_datetime
              properties:
                film_id:
                  type: integer
                kp_id:
                  type: integer
                plan_type:
                  type: string
                  enum:
                  - home
                  - cinema
                  default: home
                plan_datetime:
                  type: string
                  format: date-time
      responses:
        '200':
          description: ok
        '400':
          description: invalid_request
        '401':
          description: unauthorized
        '403':
          description: insufficient_scope
          not_member или forbidden: null
      operationId: postV1GroupsByChatIdPlans
      x-operation-id-source: derived
  /v1/groups/{chat_id}/plans/{plan_id}:
    delete:
      tags:
      - Groups
      summary: Удалить один план явно выбранной группы
      description: 'Для OAuth нужны plans.write и groups.write. Не требуется переключать текущий профиль.

        Нужны действующее членство и права автора плана либо владельца/администратора группы;

        для Telegram членство и роль проверяются через Telegram API.

        Фильм и оценки сохраняются. Ранее экспортированное событие Google Calendar не удаляется.

        Подтверждение удаления — только deleted=true; отсутствующий в этой группе план возвращает 404.'
      security:
      - BearerAuth: []
      - SiteSession: []
      parameters:
      - in: path
        name: chat_id
        required: true
        schema:
          type: integer
        description: Точный chat_id группы; поддерживаются отрицательные идентификаторы.
      - in: path
        name: plan_id
        required: true
        schema:
          type: integer
          minimum: 1
      responses:
        '200':
          description: Результат удаления; deleted=false не подтверждает удаление.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanDeletion'
        '400':
          description: invalid_request
        '401':
          description: unauthorized
        '403':
          description: insufficient_scope
          not_member или forbidden: null
        '404':
          description: plan_not_found
      operationId: deleteV1GroupsByChatIdPlansByPlanId
      x-operation-id-source: derived
  /v1/groups:
    get:
      tags:
      - Groups
      summary: Список групп пользователя (виртуальные комнаты и привязанные чаты)
      security:
      - BearerAuth: []
      - SiteSession: []
      responses:
        '200':
          description: ok
        '401':
          description: unauthorized
        '403':
          description: insufficient_scope
      operationId: getV1Groups
      x-operation-id-source: derived
    post:
      tags:
      - Groups
      summary: Создать виртуальную группу
      security:
      - BearerAuth: []
      - SiteSession: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              properties:
                name:
                  type: string
                emoji:
                  type: string
      responses:
        '200':
          description: ok
        '400':
          description: bad request
        '401':
          description: unauthorized
        '403':
          description: insufficient_scope
      operationId: postV1Groups
      x-operation-id-source: derived
  /v1/groups/{chat_id}/invite:
    post:
      tags:
      - Groups
      summary: Создать invite-ссылку для группы (если пользователь состоит в группе)
      security:
      - BearerAuth: []
      - SiteSession: []
      parameters:
      - in: path
        name: chat_id
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: ok
        '401':
          description: unauthorized
        '403':
          description: insufficient_scope or not_member
      operationId: postV1GroupsByChatIdInvite
      x-operation-id-source: derived
  /v1/groups/{chat_id}/share-film:
    post:
      tags:
      - Groups
      summary: Предложить фильм в группу (group feed)
      security:
      - BearerAuth: []
      - SiteSession: []
      parameters:
      - in: path
        name: chat_id
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: ok
        '403':
          description: not member / forbidden
      operationId: postV1GroupsByChatIdShareFilm
      x-operation-id-source: derived
components:
  schemas:
    Plan:
      type: object
      required:
      - id
      - plan_type
      - plan_datetime
      - title
      properties:
        id:
          type: integer
        plan_id:
          type: integer
          description: Идентификатор плана, равен id; используется для удаления, не film_id и не kp_id.
        year:
          type:
          - integer
          - 'null'
        created_by_user_id:
          type:
          - integer
          - 'null'
          description: Автор плана; поле добавлено к существующему ответу.
        plan_type:
          type: string
          enum:
          - home
          - cinema
        plan_datetime:
          type: string
          format: date-time
        title:
          type: string
        film_id:
          type:
          - integer
          - 'null'
        kp_id:
          type:
          - integer
          - 'null'
        cinema_name:
          type:
          - string
          - 'null'
        cinema_address:
          type:
          - string
          - 'null'
        online_link:
          type:
          - string
          - 'null'
        is_series:
          type: boolean
    PlansList:
      type: object
      properties:
        success:
          type: boolean
        api_version:
          type: string
          example: v1
        home:
          type: array
          items:
            $ref: '#/components/schemas/Plan'
        cinema:
          type: array
          items:
            $ref: '#/components/schemas/Plan'
        premieres:
          type: array
          items:
            $ref: '#/components/schemas/Plan'
    PlanDeletion:
      type: object
      required:
      - success
      - deleted
      - plan_id
      - chat_id
      properties:
        success:
          type: boolean
        deleted:
          type: boolean
        plan_id:
          type: integer
        chat_id:
          type: integer
        api_version:
          type: string
          example: v1
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    SiteSession:
      type: apiKey
      in: header
      name: Authorization
      description: Bearer <site_session_token>