---
title: "Rate one agent reply (creator only)"
method: POST
path: "/agents/sessions/{session_id}/turns/{turn_id}/feedback"
tags: ["AI", "Agents"]
---

# Rate one agent reply (creator only)

`POST /agents/sessions/{session_id}/turns/{turn_id}/feedback`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/agents/sessions/{session_id}/turns/{turn_id}/feedback`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Body: `rating` (up or down) and an optional `comment`. Kept on the turn's trace; a later rating of the same turn replaces it. 404 when the chat has no trace for the turn.

## Path parameters

- `session_id` string, required
- `turn_id` string, required

## Request body

- TurnFeedbackRequest
  - `rating` 'up' | 'down', required
  - `comment` string, nullable

## Response `204`

Request fulfilled, nothing follows

## Other responses

- `400`: Bad request syntax or unsupported method
- `403`: Request forbidden -- authorization will not help

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/17af8131167d?raw)
