soeru Voice Study API

The Voice Study API from soeru — 11 operation(s) for voice study.

GitHub OpenAPI

Operations 13

GET /api/voice-study/codex Get Codex #
PATCH /api/voice-study/codex Update Codex #
PATCH /api/voice-study/auto-rules Update Auto Rule #
GET /api/voice-study/culture-rules Get Culture Rules #
PATCH /api/voice-study/culture-rules Update Culture Rule #
GET /api/voice-study/heartbeat Get Heartbeat #
POST /api/voice-study/clear-cassette-warmth Clear Cassette Warmth #
GET /api/voice-study/summary Get Voice Summary #
GET /api/voice-study/cassette/full Get Cassette Full #
GET /api/voice-study/maintenance-status Get Voice Maintenance Status #
GET /api/voice-study/cassette/draft Get Cassette Draft #
POST /api/voice-study/cassette/apply-draft Apply Cassette Draft #
POST /api/voice-study/cassette/rollback Rollback Cassette #

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-voice-study-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-voice-study-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: soeru Voice Study API
  description: AIパーソナライズ明細書メッセージ自動生成SaaS
  version: 0.1.0
tags:
- name: Voice Study
paths:
  /api/voice-study/codex:
    get:
      tags:
      - Voice Study
      summary: Get Codex
      description: 'voice_codex の現在値を返す。Voice Studio 表示用。


        Voice Sync 対応 (2026-05-01):

        - shop が voice_sync_source_id を持つ場合 (= 同期先 shop)、

        codex / voice_summary / auto_rules すべて同期元から取得する。

        - これにより「画面上は空だが生成では同期元が使われている」silent failure を防ぐ。

        - **2026-05-03 sho 指示で auto_rules も sync 対象に変更**:

        旧設計では子 shop で個別 toggle 可能だったが、親で全 ON 表示なのに

        子で OFF が反映される矛盾が発生 (UX 上の重大な誤解)。voice_codex 5 軸

        が既に sync 専用 read-only なので、同じ層に統一する。

        子側で細かい調整したい店舗主は Voice Link を解除して自立する選択肢が残る。'
      operationId: get_codex_api_voice_study_codex_get
      parameters:
      - name: shop_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Shop Id
      - 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'
    patch:
      tags:
      - Voice Study
      summary: Update Codex
      description: 'voice_codex の特定軸を sho が UI で手動編集する。


        手動編集された軸は manually_edited_keys に記録され、次回の自動蒸留

        (refresh-all) で AI 出力で上書きされず、sho の意図が恒久的に保持される。'
      operationId: update_codex_api_voice_study_codex_patch
      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/CodexUpdateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/voice-study/auto-rules:
    patch:
      tags:
      - Voice Study
      summary: Update Auto Rule
      description: '自動ルール (Context Rule 由来) の ON/OFF を shop ごとに切替。


        例: 「3回目のご注文」のように購入回数に触れたい店は

        number_recall_forbidden を OFF にできる。default はすべて ON。


        2026-05-12 sho 整理判断: 日本語固有ルール (二人称禁止等) は

        culture_modules/ja_jp.py に移動 → /api/voice-study/culture-rules で扱う.

        2026-05-22 P3: gift_inference (贈り主目線禁止) は明細書用途モジュールに

        固定移設したため本トグルから除外。'
      operationId: update_auto_rule_api_voice_study_auto_rules_patch
      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/AutoRuleToggleRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/voice-study/culture-rules:
    get:
      tags:
      - Voice Study
      summary: Get Culture Rules
      description: '文化所作モジュール (Block 1.5) の現在の ON/OFF 状態を取得.


        Returns:

        {

        "locale": "ja_JP",

        "display_name": "日本",

        "rules": [{"key", "label", "description", "enabled"}, ...]

        }'
      operationId: get_culture_rules_api_voice_study_culture_rules_get
      parameters:
      - name: shop_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Shop Id
      - 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'
    patch:
      tags:
      - Voice Study
      summary: Update Culture Rule
      description: '文化所作モジュール (Block 1.5) のルール ON/OFF を切替.


        例: アパレル店舗が「あなた」表現を許したい → j10_second_person を OFF'
      operationId: update_culture_rule_api_voice_study_culture_rules_patch
      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/CultureRuleToggleRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/voice-study/heartbeat:
    get:
      tags:
      - Voice Study
      summary: Get Heartbeat
      description: '学習の鼓動 — sample 数 / 編集数 / 最終更新等の統計。


        Voice Sync 対応 (2026-05-01):

        - sample / edit / authentic は **同期元** shop の数字を返す

        (= 「実際に学習元になっているデータの規模」を見せる)。

        - voice_codex_meta も同期元の codex から取る。

        - 同期元 shop 名も含めて返し、UI でバッジ表示できるようにする。'
      operationId: get_heartbeat_api_voice_study_heartbeat_get
      parameters:
      - name: shop_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Shop Id
      - 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/voice-study/clear-cassette-warmth:
    post:
      tags:
      - Voice Study
      summary: Clear Cassette Warmth
      description: 'warmth marker を強制クリア (Phase C-1.5 検証用 / cold start 再現).


        通常フローでは呼ばない. shop owner or admin のみ実行可.'
      operationId: clear_cassette_warmth_api_voice_study_clear_cassette_warmth_post
      parameters:
      - name: shop_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Shop Id
      - 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/voice-study/summary:
    get:
      tags:
      - Voice Study
      summary: Get Voice Summary
      description: '新 /dashboard/voice 1 画面用 集約 API (Phase A 2026-05-09).


        Returns:

        personality_score: 0-100 (旧 Voice Maturity, 「ブランドの個性」と表示)

        personality_stage: "育ち始め" | "深まり中" | "成熟"

        this_week_evolution: 1-3 行サマリ (今週の進化)

        next_adventure: { title, description, action_label, action_url }

        cassette: { exists, version, last_compiled_at, signature_phrases_count }

        sample_count / authentic_count: Advanced view 用統計'
      operationId: get_voice_summary_api_voice_study_summary_get
      parameters:
      - name: shop_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Shop Id
      - 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/voice-study/cassette/full:
    get:
      tags:
      - Voice Study
      summary: Get Cassette Full
      description: 'active な voice_cassette の中身全体を返す (読み取り専用 UI 用).


        Returns:

        is_starter: bool — starter cassette を使っているか

        version: int | null

        compiled_at: ISO str | null

        cassette: dict — brand_card / voice_card / hard_rules / soft_hints /

        exemplar_set / anti_patterns / closing_kit /

        bias_check_self / compile_metadata 等の全部

        source_sample_count: int — 何件のサンプルから作られたか (compile_metadata より)'
      operationId: get_cassette_full_api_voice_study_cassette_full_get
      parameters:
      - name: shop_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Shop Id
      - 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/voice-study/maintenance-status:
    get:
      tags:
      - Voice Study
      summary: Get Voice Maintenance Status
      description: '声お手入れの検知をアプリへ返す (検知カード用・cost0・決定論)。


        needs_refresh / new_materials / pending_draft / current_cassette を返す。

        Voice-Link target 店は can_maintain=false (source 店で行う)。'
      operationId: get_voice_maintenance_status_api_voice_study_maintenance_status_get
      parameters:
      - name: shop_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Shop Id
      - 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/voice-study/cassette/draft:
    get:
      tags:
      - Voice Study
      summary: Get Cassette Draft
      description: 未反映の声カセット下書きを返す (プレビュー用)。無ければ has_draft=false。
      operationId: get_cassette_draft_api_voice_study_cassette_draft_get
      parameters:
      - name: shop_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Shop Id
      - 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/voice-study/cassette/apply-draft:
    post:
      tags:
      - Voice Study
      summary: Apply Cassette Draft
      description: '下書きを active に昇格する (店主「これで反映」)。learned_principles/editorial_avoids も

        voice_dna へ書き戻す。決定論・cost0。'
      operationId: apply_cassette_draft_api_voice_study_cassette_apply_draft_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/_ShopIdBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/voice-study/cassette/rollback:
    post:
      tags:
      - Voice Study
      summary: Rollback Cassette
      description: 直前の版へ戻す (店主「前の声に戻す」)。決定論・cost0。
      operationId: rollback_cassette_api_voice_study_cassette_rollback_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/_ShopIdBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AutoRuleToggleRequest:
      properties:
        shop_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Shop Id
        key:
          type: string
          title: Key
          description: '切替するルール (推奨 5 件): customer_scene_assumption_forbidden / customer_intent_declaration_forbidden / vocabulary_matches_product_context / closing_must_express_gratitude / number_recall_forbidden'
        enabled:
          type: boolean
          title: Enabled
      type: object
      required:
      - key
      - enabled
      title: AutoRuleToggleRequest
    CultureRuleToggleRequest:
      properties:
        shop_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Shop Id
        key:
          type: string
          title: Key
          description: 'ルール ID (例: j1_kogo_buree, j10_second_person)'
        enabled:
          type: boolean
          title: Enabled
      type: object
      required:
      - key
      - enabled
      title: CultureRuleToggleRequest
    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
    CodexUpdateRequest:
      properties:
        shop_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Shop Id
        key:
          type: string
          title: Key
          description: '編集する軸: forbidden_expressions / preferred_expressions / signature_phrases / structural_conventions / forbidden_concepts'
        value:
          title: Value
      type: object
      required:
      - key
      - value
      title: CodexUpdateRequest
    _ShopIdBody:
      properties:
        shop_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Shop Id
      type: object
      title: _ShopIdBody