---
title: "List Reflective Completed Pending Pdf"
method: GET
path: "/api/messages/reflective-completed"
tags: ["Messages"]
---

# List Reflective Completed Pending Pdf

`GET /api/messages/reflective-completed`

## Request

- Base URL: `https://api.soeru.biz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.soeru.biz/api/messages/reflective-completed`
- Auth: none declared. Required headers: `authorization`

Wave 4 (2026-05-06): じっくり予約で完成 + PDF 未出力のメッセージ一覧.

/dashboard/orders 上部の banner と 1 クリック PDF 出力 flow から使う.
- reflected_at 以降 24h 以内に絞る (古いものは履歴ページで対応)
- llm_batch_jobs.caller='reflective_message' AND reflected_at IS NOT NULL
- 対応する message_history を join して message_text / message_id / pdf_generated を返す
- pdf_generated=true は除外 (既に PDF 化済 → banner に出さない)

返却形:
    {
      "items": [
        {
          "job_id": int,
          "message_id": str,
          "order_id": str,
          "customer_name": str,
          "customer_email": str,
          "message_text": str,
          "message_text_preview": str (200 chars),
          "completed_at": iso,
        }, ...
      ],
      "count": int
    }

## Headers

- `x-shop-id` string, nullable: Optional shop ID
- `authorization` string, required: Bearer <token>

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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