soeru Engine Compare (Admin) API

The Engine Compare (Admin) API from soeru — 4 operation(s) for engine compare (admin).

GitHub OpenAPI

Operations 4

POST /api/messages/admin/compare-engines Compare Engines #
POST /api/messages/admin/select-comparison-winner Select Comparison Winner #
GET /api/messages/admin/engine-comparisons List Engine Comparisons #
GET /api/messages/admin/compare-engines/recent-orders List Recent Orders For Compare #

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/soeru-biz:soeru-biz-engine-compare-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

soeru-biz-engine-compare-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: soeru Engine Compare (Admin) API
  description: AIパーソナライズ明細書メッセージ自動生成SaaS
  version: 0.1.0
tags:
- name: Engine Compare (Admin)
paths:
  /api/messages/admin/compare-engines:
    post:
      tags:
      - Engine Compare (Admin)
      summary: Compare Engines
      description: 1 注文に対して N engine を並列実行し結果を保存。
      operationId: compare_engines_api_messages_admin_compare_engines_post
      parameters:
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompareEnginesRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/messages/admin/select-comparison-winner:
    post:
      tags:
      - Engine Compare (Admin)
      summary: Select Comparison Winner
      description: sho が選んだ engine の出力を message_history に反映。
      operationId: select_comparison_winner_api_messages_admin_select_comparison_winner_post
      parameters:
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SelectWinnerRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/messages/admin/engine-comparisons:
    get:
      tags:
      - Engine Compare (Admin)
      summary: List Engine Comparisons
      description: 過去の比較ログ一覧 (最新順)。
      operationId: list_engine_comparisons_api_messages_admin_engine_comparisons_get
      parameters:
      - name: shop_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Shop Id
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/messages/admin/compare-engines/recent-orders:
    get:
      tags:
      - Engine Compare (Admin)
      summary: List Recent Orders For Compare
      description: 'エンジン比較 picker 用 — 指定 shop の直近 N 件の注文サマリ。


        customer_email が `***` (匿名化済) の row も含める — 匿名化された注文でも

        比較対象として有効 (engine が customer_id_hash 経由で履歴を引ける)。'
      operationId: list_recent_orders_for_compare_api_messages_admin_compare_engines_recent_orders_get
      parameters:
      - name: shop_id
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Shop Id
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SelectWinnerRequest:
      properties:
        comparison_id:
          type: string
          maxLength: 64
          minLength: 1
          title: Comparison Id
        selected_engine:
          type: string
          maxLength: 64
          minLength: 1
          title: Selected Engine
        selection_note:
          anyOf:
          - type: string
            maxLength: 2000
          - type: 'null'
          title: Selection Note
      type: object
      required:
      - comparison_id
      - selected_engine
      title: SelectWinnerRequest
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CompareEnginesRequest:
      properties:
        shop_id:
          type: string
          maxLength: 64
          minLength: 1
          title: Shop Id
        order_id:
          type: string
          maxLength: 128
          minLength: 1
          title: Order Id
        engines:
          items:
            type: string
            enum:
            - v1_legacy
            - v2_structured
            - v3_narrative
            - v4_cassette
            - v4_singlepass
            - v6_kobo
            - v6_material
            - v4_refined
          type: array
          maxItems: 4
          minItems: 1
          title: Engines
        length_preset:
          anyOf:
          - type: string
            enum:
            - short
            - standard
            - long
            - dynamic
            - custom
          - type: 'null'
          title: Length Preset
          description: 文字数プリセット. None なら shop 設定をそのまま使う
        min_length:
          anyOf:
          - type: integer
            maximum: 600.0
            minimum: 40.0
          - type: 'null'
          title: Min Length
          description: length_preset='custom' の時に必須. 40〜600
        max_length:
          anyOf:
          - type: integer
            maximum: 600.0
            minimum: 40.0
          - type: 'null'
          title: Max Length
          description: length_preset='custom' の時に必須. 40〜600
      type: object
      required:
      - shop_id
      - order_id
      - engines
      title: CompareEnginesRequest