soeru Growth Journey API

The Growth Journey API from soeru — 10 operation(s) for growth journey.

GitHub OpenAPI

Operations 10

GET /api/growth/next-action Get Next Action #
GET /api/growth/learning-log Get Learning Log #
GET /api/growth/self-portrait Get Self Portrait #
POST /api/growth/self-portrait/feedback Post Self Portrait Feedback #
GET /api/growth/letters Get Letters #
POST /api/growth/letters/{letter_id}/read Post Letter Read #
POST /api/growth/letters/generate-now Post Letter Generate Now #
GET /api/growth/proposals Get Proposals #
POST /api/growth/proposals/{proposal_id}/dismiss Post Dismiss Proposal #
GET /api/growth/timeline Get Timeline #

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-growth-journey-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-growth-journey-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: soeru Growth Journey API
  description: AIパーソナライズ明細書メッセージ自動生成SaaS
  version: 0.1.0
tags:
- name: Growth Journey
paths:
  /api/growth/next-action:
    get:
      tags:
      - Growth Journey
      summary: Get Next Action
      description: '次にやるべき 1 アクションを返す。


        成熟度ステージ (setup_platform → brand → product → voice → first_practice

        → mature) を判定し、欠けている層を埋める提案を 1 つだけ返す。全ステージ

        充足後は最適化提案 (溜まった編集を学ばせる、長期休止からの復帰など)。


        レスポンス例:

        {

        "action_id": "add_brand_url",

        "stage": "brand_foundation",

        "title": "ブランドのストーリー URL を 1 件追加",

        "why": "...",

        "cta_label": "URL を追加する",

        "cta_href": "/dashboard/settings/brand",

        "index_delta": 12,

        "is_milestone": true,

        "is_blocked_by_v3": true

        }'
      operationId: get_next_action_api_growth_next_action_get
      parameters:
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional 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:
                type: object
                additionalProperties: true
                title: Response Get Next Action Api Growth Next Action Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/growth/learning-log:
    get:
      tags:
      - Growth Journey
      summary: Get Learning Log
      description: 'soeru があなたから学んだルールを返す (#339)。


        voice_codex (現在 state) × 直近 weeks 週の編集 (証拠) を突き合わせて

        「使わなくなった (forbidden)」「選ぶようになった (preferred)」ルールを

        最大 8 件返す。各ルールに前後ペアと「学習後に何件で適用されたか」が付く。


        レスポンス例:

        {

        "period": {"start": "...", "end": "...", "weeks": 4},

        "summary": {"edit_count": 23, "generation_count": 156, ...},

        "learnings": [

        {

        "kind": "forbidden",

        "rule": "あなたの",

        "headline": "「あなたの」を控えるようになりました",

        "evidence_count": 3,

        "sample_pairs": [{before, after, edited_at}, ...],

        "application_applied": 142, "application_total": 156

        }

        ],

        "fallback_signatures": [...] // learnings が空の時だけ

        }'
      operationId: get_learning_log_api_growth_learning_log_get
      parameters:
      - name: weeks
        in: query
        required: false
        schema:
          type: integer
          maximum: 26
          minimum: 1
          description: lookback window in weeks
          default: 4
          title: Weeks
        description: lookback window in weeks
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional 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:
                type: object
                additionalProperties: true
                title: Response Get Learning Log Api Growth Learning Log Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/growth/self-portrait:
    get:
      tags:
      - Growth Journey
      summary: Get Self Portrait
      description: 'soeru の自己紹介テキスト (一人称、200 字)。


        voice_codex を Sonnet で詩化、24h cache。voice_codex が空の shop には

        LLM を呼ばず空状態 (status="empty") を返す。


        レスポンス例:

        {

        "status": "ok",

        "text": "私はこのお店の声で書きます。\n丁寧だけど距離が近い...",

        "generated_at": "2026-05-01T12:00:00+00:00",

        "voice_codex_updated_at": "2026-04-30T18:00:00+00:00",

        "from_cache": false

        }'
      operationId: get_self_portrait_api_growth_self_portrait_get
      parameters:
      - name: force
        in: query
        required: false
        schema:
          type: boolean
          description: Bypass 24h cache (e.g. after 違和感 click)
          default: false
          title: Force
        description: Bypass 24h cache (e.g. after 違和感 click)
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional 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:
                type: object
                additionalProperties: true
                title: Response Get Self Portrait Api Growth Self Portrait Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/growth/self-portrait/feedback:
    post:
      tags:
      - Growth Journey
      summary: Post Self Portrait Feedback
      description: '「違和感がある」が押された時。cache を invalidate して次回再生成させる。


        将来は受信したフィードバックを voice_codex のメタに追記して LLM 蒸留時に

        考慮させる拡張余地あり (まずは最小実装)。'
      operationId: post_self_portrait_feedback_api_growth_self_portrait_feedback_post
      parameters:
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional 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:
                type: object
                additionalProperties: true
                title: Response Post Self Portrait Feedback Api Growth Self Portrait Feedback Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/growth/letters:
    get:
      tags:
      - Growth Journey
      summary: Get Letters
      description: 'soeru からの手紙の履歴 (最新順)。


        1 通目が「今週の手紙」、2 通目以降が過去のアーカイブ。frontend は

        1 通目を大きく表示、2 通目以降を折りたたみで見せる想定。'
      operationId: get_letters_api_growth_letters_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 50
          minimum: 1
          description: recent letters to return
          default: 10
          title: Limit
        description: recent letters to return
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional 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:
                type: object
                additionalProperties: true
                title: Response Get Letters Api Growth Letters Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/growth/letters/{letter_id}/read:
    post:
      tags:
      - Growth Journey
      summary: Post Letter Read
      description: 手紙を既読にする。
      operationId: post_letter_read_api_growth_letters__letter_id__read_post
      parameters:
      - name: letter_id
        in: path
        required: true
        schema:
          type: string
          title: Letter Id
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional 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:
                type: object
                additionalProperties: true
                title: Response Post Letter Read Api Growth Letters  Letter Id  Read Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/growth/letters/generate-now:
    post:
      tags:
      - Growth Journey
      summary: Post Letter Generate Now
      description: 'ad-hoc に手紙を 1 通生成 (sho の手動トリガー)。dedup なし。


        Sonnet 1 回 (約 ¥2)。連打防止は frontend のローディング表示に任せる。'
      operationId: post_letter_generate_now_api_growth_letters_generate_now_post
      parameters:
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional 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:
                type: object
                additionalProperties: true
                title: Response Post Letter Generate Now Api Growth Letters Generate Now Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/growth/proposals:
    get:
      tags:
      - Growth Journey
      summary: Get Proposals
      description: 'ホーム画面用「soeru からの提案」最大 N 件 (Phase A6)。


        5 ジャンル (edit_pattern / product_knowledge / brand_stagnation /

        rhythm / rule_conflict) のルールベース検知器を順に走らせ、priority 順

        で上位 N 件返す。dismiss 済みは除外。LLM 呼び出し無し。


        検知器は全て独立 try/except で隔離 (1 ジャンル失敗で他が止まらない)。'
      operationId: get_proposals_api_growth_proposals_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 5
          minimum: 1
          description: max proposals to return
          default: 3
          title: Limit
        description: max proposals to return
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional 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:
                type: object
                additionalProperties: true
                title: Response Get Proposals Api Growth Proposals Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/growth/proposals/{proposal_id}/dismiss:
    post:
      tags:
      - Growth Journey
      summary: Post Dismiss Proposal
      description: proposal を 7 日 cooldown で dismiss する。
      operationId: post_dismiss_proposal_api_growth_proposals__proposal_id__dismiss_post
      parameters:
      - name: proposal_id
        in: path
        required: true
        schema:
          type: string
          title: Proposal Id
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional 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:
                type: object
                additionalProperties: true
                title: Response Post Dismiss Proposal Api Growth Proposals  Proposal Id  Dismiss Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/growth/timeline:
    get:
      tags:
      - Growth Journey
      summary: Get Timeline
      description: '育成の年表 (出会いから今日までの主要マイルストーン)。


        LLM 不要。既存テーブル (shops / brand_knowledge / brand_digest /

        voice_samples / voice_outline / message_history / voice_dna) から

        各 1 クエリで最古日を集めるだけ。


        レスポンス:

        {

        "shop_id": "...",

        "event_count": 7,

        "events": [

        {"type": "v3_engine_active", "date": "2026-04-30",

        "title": "V3 narrative engine が起動しました",

        "body": "詩的表現が解禁された日...",

        "icon": "✨"},

        ...

        ]

        }


        新しい順 (今日に近いものが先頭) でフロントが上から表示する想定。'
      operationId: get_timeline_api_growth_timeline_get
      parameters:
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional 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:
                type: object
                additionalProperties: true
                title: Response Get Timeline Api Growth Timeline Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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