---
title: "POST /api/report"
method: POST
path: "/api/report"
---

# POST /api/report

`POST /api/report`

Report failed or problematic completions to help improve Morph's quality

## Request body

- ReportRequest
  - `completion_id` string, required — The completion ID from the original request (found in response headers or logs)
  - `failure_reason` string, required — Description of what went wrong (Error message, traceback, etc.)
  - `user_query` string — Optional: The original user instruction that led to the problematic completion

## Response `200`

Report successfully recorded

- ReportResponse
  - `success` boolean, required — Whether the report was successfully recorded
  - `message` string, required — Confirmation message
  - `data` object — Additional response data
    - `request_log_id` string — Internal ID of the reported request
    - `reported_at` string, date-time — ISO timestamp when the report was recorded

## Other responses

- `400` — Invalid request parameters
- `401` — Invalid or missing API key
- `404` — Completion ID not found
- `409` — Request already reported

---

[API](https://skmtc.net/morphllm/apis/morph-api.md) · [All operations](https://skmtc.net/morphllm/apis/morph-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/morphllm/morph-api/versions/9e3d888071b5/schema)
