---
title: "Create Trace Feedback"
method: POST
path: "/api/v1/traces/feedback"
tags: ["traces"]
---

# Create Trace Feedback

`POST /api/v1/traces/feedback`

Record human feedback and optional ground truth for an MLflow trace.

## Request body

- TraceFeedbackRequest — Feedback payload for annotating an MLflow trace.
  - `trace_id` string, nullable — Resolved MLflow trace identifier when the client already knows it.
  - `client_request_id` string, nullable — Client request identifier used to resolve the trace when trace_id is absent.
  - `is_correct` boolean, required — Whether the model output was considered correct.
  - `comment` string, nullable — Optional free-form reviewer comment explaining the feedback.
  - `expected_response` string, nullable — Optional ground-truth response or correction to log alongside the feedback.

## Response `200`

Successful Response

- TraceFeedbackResponse — Result payload after MLflow feedback has been recorded.
  - `ok` boolean — Whether the feedback request completed successfully.
  - `trace_id` string, required — Resolved MLflow trace identifier that received the feedback.
  - `client_request_id` string, nullable — Resolved client request identifier associated with the trace, when available.
  - `feedback_logged` boolean — Whether binary/correctness feedback was successfully logged.
  - `expectation_logged` boolean — Whether an expected-response correction was successfully logged.

## Other responses

- `400` — The feedback request did not include a valid trace identifier.
- `401` — Authentication is required or the provided token is invalid.
- `403` — The authenticated user is not allowed to annotate this trace.
- `404` — No MLflow trace matched the provided identifier.
- `422` — Validation Error
- `503` — MLflow feedback services are unavailable or misconfigured.

---

[API](https://skmtc.net/qredence/apis/fleet-rlm.md) · [All operations](https://skmtc.net/qredence/apis/fleet-rlm/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qredence/fleet-rlm/revisions/62e8c152aa18/schema)
