---
title: "Public Content Diagnosis"
method: POST
path: "/api/v1/public/content-diagnosis"
tags: ["public-api"]
---

# Public Content Diagnosis

`POST /api/v1/public/content-diagnosis`

## Request

- Base URL: `https://api.slidemaster.tw` (the document declares no server; this is the origin it was published from)
- URL: `https://api.slidemaster.tw/api/v1/public/content-diagnosis`
- Auth: none declared

摩擦點診斷狀態機（MCP 用）。

Actions：
- `start`：開新 session，回 purpose_question。
- `submit_purpose`：用戶選 A/B/C 後回 4 個深挖題。
- `submit_answers`：收集 4 答案後回 hypothesis 模板（用戶預覽）。
- `confirm_hypothesis`：用戶確認（可帶 modified_hypothesis），status 轉 confirmed。
- `get`：查當前狀態（除錯用）。

Session_id 從 start 拿，後續呼叫帶著。跳步會 400。

## Headers

- `Authorization` string, nullable
- `X-API-Key` string, nullable

## Response `200`

Successful Response

- DiagnosisResponse
  - `session_id` string, required
  - `status` 'purpose_pending' | 'purpose_classified' | 'questions_answered' | 'hypothesis_confirmed', required
  - `purpose` string, nullable
  - `prompt` string, nullable: 給 LLM 逐字展示給用戶的問題 / 假設
  - `questions` string[], nullable
  - `hypothesis` object, nullable
  - `answers` string[], nullable
  - `next_action_hint` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/slidemaster/apis/slidemaster-ai-api.md) · [All operations](https://skmtc.dev/slidemaster/apis/slidemaster-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/slidemaster/apis/slidemaster-ai-api/revisions/a964c005977e?raw)
