v1

latestOpenAPI 3.1.0MIT2026-07-13174391.2 KB

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

post/api/report

Request body

completion_idstring required

The completion ID from the original request (found in response headers or logs)

failure_reasonstring required

Description of what went wrong (Error message, traceback, etc.)

user_querystring

Optional: The original user instruction that led to the problematic completion

Example request

{
  "completion_id": "chatcmpl-9d9e2fc21c094f4eacbcee0009f2f12d",
  "failure_reason": "Traceback: ... Generated code had syntax errors",
  "user_query": "Add error handling to the login function"
}

Response

Report successfully recorded

successboolean required

Whether the report was successfully recorded

messagestring required

Confirmation message

Example response

{
  "success": true,
  "message": "Report successfully recorded",
  "data": {
    "request_log_id": "req_123456789",
    "reported_at": "2024-01-15T10:30:00Z"
  }
}