Контекстолог Admin API

The Admin API from Контекстолог — 12 operation(s) for admin.

GitHub OpenAPI

Operations 12

POST /admin/plans Admin Plans #
POST /admin/payments/{payment_id}/paid Admin Mark Paid #
GET /admin/support Admin Support #
POST /admin/support/{ticket_id} Admin Support Reply #
POST /admin/presentation/open Admin Presentation Open #
POST /admin/impersonate/stop Admin Impersonate Stop #
POST /admin/impersonate/{user_id} Admin Impersonate #
GET /admin/users/{user_id} Admin User #
POST /admin/users/{user_id}/freeze Admin Freeze #
POST /admin/users/{user_id}/grant Admin Grant #
POST /admin/users/{user_id}/message Admin Message #
GET /admin Admin #

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/kontekstolog-online:kontekstolog-online-admin-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

kontekstolog-online-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Контекстолог Admin API
  version: 0.1.0
tags:
- name: Admin
paths:
  /admin/plans:
    post:
      summary: Admin Plans
      description: 'Цены тарифов: новая цена и старая (зачёркнутая). Пусто — вернуть цену из кода.'
      operationId: admin_plans_admin_plans_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_admin_plans_admin_plans_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/payments/{payment_id}/paid:
    post:
      summary: Admin Mark Paid
      description: Подтверждение поступления денег по счёту — руками, после выписки банка.
      operationId: admin_mark_paid_admin_payments__payment_id__paid_post
      parameters:
      - name: payment_id
        in: path
        required: true
        schema:
          type: integer
          title: Payment Id
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_admin_mark_paid_admin_payments__payment_id__paid_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/support:
    get:
      summary: Admin Support
      operationId: admin_support_admin_support_get
      parameters:
      - name: status
        in: query
        required: false
        schema:
          type: string
          default: new
          title: Status
      - name: q
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Q
      - name: error
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Error
      - name: notice
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Notice
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/support/{ticket_id}:
    post:
      summary: Admin Support Reply
      operationId: admin_support_reply_admin_support__ticket_id__post
      parameters:
      - name: ticket_id
        in: path
        required: true
        schema:
          type: integer
          title: Ticket Id
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_admin_support_reply_admin_support__ticket_id__post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/presentation/open:
    post:
      summary: Admin Presentation Open
      operationId: admin_presentation_open_admin_presentation_open_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_admin_presentation_open_admin_presentation_open_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/impersonate/stop:
    post:
      summary: Admin Impersonate Stop
      description: Выйти из режима просмотра и вернуться в свою учётную запись.
      operationId: admin_impersonate_stop_admin_impersonate_stop_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_admin_impersonate_stop_admin_impersonate_stop_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/impersonate/{user_id}:
    post:
      summary: Admin Impersonate
      description: Посмотреть сервис глазами клиента. Возврат — кнопкой в плашке сверху; правки идут от его имени.
      operationId: admin_impersonate_admin_impersonate__user_id__post
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: integer
          title: User Id
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_admin_impersonate_admin_impersonate__user_id__post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/users/{user_id}:
    get:
      summary: Admin User
      description: 'Карточка клиента: расход, платежи, доступ, заморозка и сообщение в поддержку.'
      operationId: admin_user_admin_users__user_id__get
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: integer
          title: User Id
      - name: error
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Error
      - name: notice
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Notice
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/users/{user_id}/freeze:
    post:
      summary: Admin Freeze
      description: 'Заморозка: вход закрыт, автоведение выключено, ничего не удаляется.'
      operationId: admin_freeze_admin_users__user_id__freeze_post
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: integer
          title: User Id
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_admin_freeze_admin_users__user_id__freeze_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/users/{user_id}/grant:
    post:
      summary: Admin Grant
      description: 'Выдать доступ: тариф и срок. Срок считается от сегодня или продлевает текущий.'
      operationId: admin_grant_admin_users__user_id__grant_post
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: integer
          title: User Id
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_admin_grant_admin_users__user_id__grant_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/users/{user_id}/message:
    post:
      summary: Admin Message
      description: 'Уведомление клиенту: появляется у него в поддержке, дублируется письмом и в Telegram.'
      operationId: admin_message_admin_users__user_id__message_post
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: integer
          title: User Id
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_admin_message_admin_users__user_id__message_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin:
    get:
      summary: Admin
      operationId: admin_admin_get
      parameters:
      - name: error
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Error
      - name: notice
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Notice
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
components:
  schemas:
    Body_admin_message_admin_users__user_id__message_post:
      properties:
        csrf:
          type: string
          title: Csrf
          default: ''
        subject:
          type: string
          title: Subject
          default: ''
        text:
          type: string
          title: Text
          default: ''
      type: object
      title: Body_admin_message_admin_users__user_id__message_post
    Body_admin_impersonate_admin_impersonate__user_id__post:
      properties:
        csrf:
          type: string
          title: Csrf
          default: ''
      type: object
      title: Body_admin_impersonate_admin_impersonate__user_id__post
    Body_admin_grant_admin_users__user_id__grant_post:
      properties:
        csrf:
          type: string
          title: Csrf
          default: ''
        plan:
          type: string
          title: Plan
          default: ''
        days:
          type: integer
          title: Days
          default: 30
      type: object
      title: Body_admin_grant_admin_users__user_id__grant_post
    Body_admin_impersonate_stop_admin_impersonate_stop_post:
      properties:
        csrf:
          type: string
          title: Csrf
          default: ''
      type: object
      title: Body_admin_impersonate_stop_admin_impersonate_stop_post
    Body_admin_support_reply_admin_support__ticket_id__post:
      properties:
        csrf:
          type: string
          title: Csrf
          default: ''
        answer:
          type: string
          title: Answer
          default: ''
        action:
          type: string
          title: Action
          default: answer
        submission_id:
          type: string
          title: Submission Id
          default: ''
        reply_id:
          type: integer
          title: Reply Id
          default: 0
      type: object
      title: Body_admin_support_reply_admin_support__ticket_id__post
    Body_admin_freeze_admin_users__user_id__freeze_post:
      properties:
        csrf:
          type: string
          title: Csrf
          default: ''
        reason:
          type: string
          title: Reason
          default: ''
        action:
          type: string
          title: Action
          default: freeze
      type: object
      title: Body_admin_freeze_admin_users__user_id__freeze_post
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    Body_admin_presentation_open_admin_presentation_open_post:
      properties:
        csrf:
          type: string
          title: Csrf
          default: ''
      type: object
      title: Body_admin_presentation_open_admin_presentation_open_post
    Body_admin_mark_paid_admin_payments__payment_id__paid_post:
      properties:
        csrf:
          type: string
          title: Csrf
          default: ''
      type: object
      title: Body_admin_mark_paid_admin_payments__payment_id__paid_post
    Body_admin_plans_admin_plans_post:
      properties:
        csrf:
          type: string
          title: Csrf
          default: ''
      type: object
      title: Body_admin_plans_admin_plans_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError