Akeda Settings integrations API

Модуль settings (настройки кабинета) — подключения к торговым платформам и службам доставки, которые не маркетплейсы (Яндекс KIT, Ozon Retail, СДЭК): проверка ключей у платформы, включённость и настройки. Ключи платформы вводит только человек на экране «Настройки → Подключения».

Operations 3

GET /api/v1/settings/integration-connections Подключения к платформам не-маркетплейсам #
PUT /api/v1/settings/integration-connections/{provider} Подключить платформу или изменить подключение #
POST /api/v1/settings/integration-connections/{provider}/check Проверить подключение снова #

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/akeda-ru:akeda-ru-settings-integrations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

akeda-ru-settings-integrations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Akeda ERP Client Settings integrations API
  version: 0.21.0-core-public
  summary: Проверяемый публичный контракт Go API Akeda ERP
  license:
    name: Proprietary
    identifier: LicenseRef-Akeda-Proprietary
  description: 'Этот контракт описывает API Akeda ERP. Полный исходный файл используют

    проверки живых Go-маршрутов, внутренние клиенты и реестр MCP. Скачиваемый

    клиентский контракт в `/docs` содержит только отобранные внешние методы;

    административные методы кабинета показаны отдельно после входа, а

    платформенные операторские методы остаются во внутреннем источнике.

    Стадия `public` означает обещание совместимости; `preview` допускает

    изменение формы. Аудитория, стадия и `security` — разные признаки:

    наличие метода в полном файле само по себе не выдаёт вызывающему право.

    Сервер отдельно проверяет тип токена, кабинет, scope и права на запись.

    Актуальные числа покрытия берите из генерируемой карты маршрутов и

    каталога покрытия, а не из описательного текста.'
servers:
- url: https://erp.akeda.ru
  description: PROD
security:
- erpUserToken: []
- tenantApiKey: []
- mcpOAuth:
  - akeda:delegate
tags:
- name: Settings integrations
  description: 'Модуль settings (настройки кабинета) — подключения к торговым платформам и службам доставки, которые не маркетплейсы (Яндекс KIT, Ozon Retail, СДЭК): проверка ключей у платформы, включённость и настройки. Ключи платформы вводит только человек на экране «Настройки → Подключения».'
paths:
  /api/v1/settings/integration-connections:
    get:
      tags:
      - Settings integrations
      operationId: settingsListIntegrationConnections
      summary: Подключения к платформам не-маркетплейсам
      description: Подключения кабинета к торговым платформам и службам доставки, которые не маркетплейсы (Яндекс KIT, Ozon Retail, СДЭК), и список подключаемых платформ. Токен не отдаётся никогда — только признак has_secret.
      x-akeda-module: settings
      x-akeda-release-stage: preview
      x-akeda-audience: external
      security:
      - erpUserToken: []
      - tenantApiKey: []
      - mcpOAuth:
        - akeda:delegate
      x-akeda-permission: settings:read
      parameters:
      - $ref: '#/components/parameters/TenantHeader'
      responses:
        '200':
          description: Подключения кабинета
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SettingsIntegrationConnectionList'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
  /api/v1/settings/integration-connections/{provider}:
    put:
      tags:
      - Settings integrations
      operationId: settingsSaveIntegrationConnection
      summary: Подключить платформу или изменить подключение
      description: 'Без токена меняет включённость и настройки (options) уже подключённой платформы — это доступно и ключу кабинета, и подключённому агенту. Новый токен (с client_id, если вход парой) вводит только человек в интерфейсе кабинета: ключ и агент с token или client_id получают 403 settings.integration_browser_only. Токен сначала проверяется у платформы и сохраняется только если она его приняла: отказ — 422 integration_token_rejected, платформа не ответила — 503 integration_unavailable. Неподключённую платформу без токена завести нельзя — 400 integration_token_required.'
      x-akeda-module: settings
      x-akeda-release-stage: preview
      x-akeda-audience: external
      security:
      - erpUserToken: []
      - tenantApiKey: []
      - mcpOAuth:
        - akeda:delegate
      x-akeda-permission: settings:write
      parameters:
      - $ref: '#/components/parameters/TenantHeader'
      - name: provider
        in: path
        required: true
        description: Платформа — yandex_kit, ozon_retail или cdek
        schema:
          type: string
          enum:
          - yandex_kit
          - ozon_retail
          - cdek
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SettingsIntegrationConnectionInput'
      responses:
        '200':
          description: Сохранённое подключение без токена
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SettingsIntegrationConnectionEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          description: Платформа не приняла токен (integration_token_rejected) или не пускает адрес сервера (integration_address_forbidden, Ozon Retail)
        '503':
          description: Платформа не ответила (integration_unavailable) или на сервере не задан ключ шифрования (secrets_unavailable)
  /api/v1/settings/integration-connections/{provider}/check:
    post:
      tags:
      - Settings integrations
      operationId: settingsCheckIntegrationConnection
      summary: Проверить подключение снова
      description: Спрашивает платформу с сохранённым токеном и записывает итог — и отказ тоже, чтобы экран показал отозванный ключ. Сведения о магазине при отказе не стираются. Токен в ответ не попадает.
      x-akeda-module: settings
      x-akeda-release-stage: preview
      x-akeda-audience: external
      security:
      - erpUserToken: []
      - tenantApiKey: []
      - mcpOAuth:
        - akeda:delegate
      x-akeda-permission: settings:write
      parameters:
      - $ref: '#/components/parameters/TenantHeader'
      - name: provider
        in: path
        required: true
        description: Платформа — yandex_kit, ozon_retail или cdek
        schema:
          type: string
          enum:
          - yandex_kit
          - ozon_retail
          - cdek
      responses:
        '200':
          description: Подключение с итогом проверки
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SettingsIntegrationConnectionEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '503':
          description: На сервере не задан ключ шифрования (secrets_unavailable)
components:
  schemas:
    SettingsIntegrationConnectionList:
      type: object
      additionalProperties: false
      required:
      - connections
      - providers
      properties:
        connections:
          type: array
          items:
            $ref: '#/components/schemas/SettingsIntegrationConnection'
        providers:
          type: array
          items:
            type: string
    SettingsIntegrationConnectionInput:
      type: object
      additionalProperties: false
      properties:
        token:
          type: string
          writeOnly: true
          description: Новый токен API платформы (Secure password у СДЭК); не прислан — токен прежний. Вводит только человек в интерфейсе
        enabled:
          type: boolean
          description: Включённость; не прислана — прежняя (новое подключение включено)
        client_id:
          type: string
          writeOnly: true
          description: Открытая часть входа пары (Client ID у Ozon Retail, Account у СДЭК); меняется только вместе с новым token и вводится только человеком
        options:
          type: object
          additionalProperties: true
          description: Настройки человека; не прислано — прежние. Сохраняются без новой проверки токена
    SettingsIntegrationConnectionEnvelope:
      type: object
      additionalProperties: false
      required:
      - connection
      properties:
        connection:
          $ref: '#/components/schemas/SettingsIntegrationConnection'
    SettingsIntegrationConnection:
      type: object
      additionalProperties: false
      required:
      - id
      - provider
      - enabled
      - client_id
      - has_secret
      - status
      - last_check_at
      - last_check_code
      - account
      - options
      - created_at
      - updated_at
      properties:
        id:
          $ref: '#/components/schemas/UUID'
        provider:
          type: string
          enum:
          - yandex_kit
          - ozon_retail
          - cdek
        enabled:
          type: boolean
        client_id:
          type: string
          description: Открытая часть входа пары (Client ID у Ozon Retail, Account у СДЭК); у Яндекс KIT пустая
        has_secret:
          type: boolean
          description: Токен сохранён; самого токена в ответе нет никогда
        status:
          type: string
          enum:
          - not_checked
          - ok
          - rejected
          - unavailable
        last_check_at:
          oneOf:
          - type: string
            format: date-time
          - type: 'null'
        last_check_code:
          type: string
          description: ok, token_rejected, rate_limited, unavailable; у Ozon Retail — credentials_rejected, ip_forbidden; у СДЭК — credentials_rejected
        account:
          $ref: '#/components/schemas/SettingsIntegrationAccount'
        options:
          type: object
          additionalProperties: true
          description: 'Настройки человека: юрлицо, склад, соответствие складов; хранятся как присланы'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    SettingsIntegrationWarehouse:
      type: object
      additionalProperties: false
      required:
      - id
      - title
      - status
      properties:
        id:
          type: string
          description: Идентификатор склада у платформы
        title:
          type: string
        status:
          type: string
          description: Статус склада у платформы (ACTIVE)
    SettingsIntegrationAccount:
      type: object
      additionalProperties: false
      required:
      - warehouses
      description: Что платформа сообщила о себе при проверке; только для показа
      properties:
        store_id:
          type: string
        store_slug:
          type: string
        store_url:
          type: string
        warehouses:
          type: array
          items:
            $ref: '#/components/schemas/SettingsIntegrationWarehouse'
    Error:
      type: object
      additionalProperties: false
      required:
      - detail
      properties:
        detail:
          type: string
          description: One human sentence in the request language (Accept-Language, echoed as Content-Language)
        code:
          type: string
          description: Stable module error code when the endpoint defines one
        field:
          type: string
          description: Request body path of the field the refusal is about, e.g. content.commercial.amount or due_date; present when the endpoint names the field
        reason:
          type: string
          description: Machine code of the field refusal reason, e.g. required, format, total_mismatch; present together with field when the endpoint defines reasons
        request_id:
          type: string
          format: uuid
          description: Case id. Always present on 5xx and on any error produced by the server itself; the same value is returned in the X-Request-ID header and recorded in the access log and the incident. Quote it to support instead of the cause, which the response never carries.
    UUID:
      type: string
      format: uuid
  responses:
    BadRequest:
      description: Некорректный запрос или нарушение бизнес-правила
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Сессия, ключ или кабинет не подтверждены
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Текущая роль не имеет требуемого права
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Запись не найдена или не видима текущему пользователю
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  parameters:
    TenantHeader:
      name: X-Tenant
      in: header
      required: true
      description: Slug выбранного кабинета; кабинет не является юрлицом
      schema:
        type: string
        minLength: 1
  securitySchemes:
    erpUserToken:
      type: http
      scheme: bearer
      bearerFormat: go_session
      description: Пользовательский ERP token, полученный через ORY Kratos session bridge
    tenantApiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: Tenant-scoped сервисный API-ключ Akeda
    installationToken:
      type: http
      scheme: bearer
      bearerFormat: akeda_installation_token
      description: 'Краткосрочный токен установки приложения (`ai_…`). Выдаёт его человек: публичной двери обмена учётных данных на токен нет и не будет, пока нет брокера долгой половины секрета, асимметричного подтверждения и ограничителя с аудитом неудачных попыток. Токен принимается и в заголовке X-Api-Key, и живёт минуты — вместо показа его ротируют'
    developerSessionToken:
      type: http
      scheme: bearer
      bearerFormat: akeda_developer_session
      description: 'Сессия аккаунта разработчика (`ad_…`). Своя схема, а не пользовательский токен ERP: у разработчика нет кабинета, роли и прав, а хеш этого токена лежит в отдельном хранилище — на кабинетных маршрутах он не находится ничем. Выдаёт его обмен одноразовой ссылки из письма; пароля в этом контуре нет вовсе'
    developerAppKey:
      type: http
      scheme: bearer
      bearerFormat: akeda_developer_app_key
      description: 'Учётные данные приложения (`adk_…`) — это машина конвейера издателя, а не человек. Ключ привязан к ОДНОМУ приложению внешним ключом, и достижимая им поверхность — маршруты `/api/v1/developer` этого приложения. Обменять его на токен установки нельзя: такой двери нет, и ни одного маршрута к данным кабинета за ним не существует. Выпуск, ротацию и отзыв учётных данных этот ключ не выполняет: ключ, умеющий выпустить следующий ключ, не отзывается никогда. Значение показывается один раз, при выдаче; в хранилище лежит хеш'
    mcpOAuth:
      type: oauth2
      description: OAuth 2.1 delegation для MCP; кабинетные права проверяются на каждом вызове
      flows:
        authorizationCode:
          authorizationUrl: https://erp.akeda.ru/oauth2/authorize
          tokenUrl: https://erp.akeda.ru/oauth2/token
          scopes:
            akeda:delegate: Делегировать текущие пользовательские права MCP-подключению
x-akeda-contract-coverage:
- dashboard-metrics
- tasks-lifecycle
- tasks-collaboration
- tasks-workflow
- tasks-organization
- tasks-automation
- tasks-planning
- tasks-project-hub
- tasks-files
- calendar-events
- calendar-availability
- calendar-booking
- calendar-notifications
- calendar-connectors
- chat-conversations
- chat-messages
- chat-receipts
- chat-mentions
- chat-realtime
- core-directories
- core-folders
- core-contacts
- core-products
- core-documents
- core-orders
- core-registers
- core-accounting
- core-ledger
- core-items
- core-employees
- core-employee-operations
- core-currency-rates
- core-preferences
- core-ui-state
- core-external-refs
- core-product-imports
- core-product-exports
- core-gl-opening-imports
- core-reference
- core-change-feed
- finance-accounts
- finance-statements
- finance-transactions
- finance-connectors
- finance-connector-sync
- finance-requisites
- finance-counterparty-terms
- finance-operations
- finance-settlements
- finance-trade
- finance-exchange
- finance-imports
- finance-payment-calendar
- finance-pnl-layouts
- finance-registers
- finance-reports
- crm-pipelines
- crm-deals
- crm-leads
- crm-customers
- crm-links
- crm-inbox
- crm-automation
- crm-analytics
- knowledge-spaces
- knowledge-pages
- knowledge-access
- knowledge-files
- knowledge-search
- files-drives
- files-content
- files-access
- files-uploads
- files-shares
- stock-documents
- stock-inventory
- stock-warehouses
- stock-handling-units
- stock-batches
- stock-product-units
- stock-references
- stock-imports
- stock-exports
- stock-reports
- stock-valuation
- stock-reorder-rules
- stock-settings
- stock-purchasing
- marking-settings
- marking-connections
- marking-products
- marking-codes
- marking-labels
- marking-stock-codes
- marking-orders
- marking-gismt-documents
- marking-boxes
- marketplace-stores
- marketplace-ozon
- marketplace-wildberries
- marketplace-yandex
- marketplace-product-groups
- marketplace-accounting
- marketplace-catalog
- settings-companies
- settings-roles
- settings-members
- settings-fields
- settings-api-keys
- finance-payroll
- finance-report-details
- knowledge-tags
- knowledge-revisions
- knowledge-approval
- chat-attachments
- chat-reactions
- chat-folders
- platform-apps
- platform-app-installations
- platform-app-tokens
- platform-app-deliveries
- platform-app-publishers
- platform-app-publication
- platform-app-rollouts
- platform-app-runtime
- platform-app-access
- platform-app-blocks
- platform-demo-data
- billing-usage
- platform-analytics
- finance-staffing
- platform-tenants
- platform-users
- platform-access
- platform-mcp-publication
- platform-incidents
- platform-health
- settings-apps
- docflow-connections
- docflow-mirror
- docflow-signing
- docflow-actions
- docflow-outgoing
- docflow-intake
- docflow-flow
- docflow-approvals
- docflow-flow-accounting
- mail-accounts
- mail-folders
- mail-messages
- mail-rules
- mail-outbound
- mail-attachments
- billing-plans
- billing-subscriptions
- billing-invoices
- billing-analytics
- settings-subscription
- billing-payments
- billing-public
x-akeda-docs-path: /docs
x-akeda-default-release-stage: internal
x-akeda-default-audience: operator