---
title: "Submit feedback for prompt improvement"
method: POST
path: "/v3/ai-agents/{agent_id}/prompt-feedback"
tags: ["v3", "prompt-feedback"]
---

# Submit feedback for prompt improvement

`POST /v3/ai-agents/{agent_id}/prompt-feedback`

## Request

- Base URL: `https://api.mentium.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mentium.io/v3/ai-agents/{agent_id}/prompt-feedback`
- Auth: HTTP bearer

## Path parameters

- `agent_id` string, uuid, required

## Headers

- `mentium-workspace-id` string, nullable

## Request body

- PromptFeedbackCreate
  - `phone_call_id` string, uuid, nullable: Source phone call ID
  - `ai_agent_session_id` string, uuid, nullable: Source agent session ID
  - `feedback_text` string, required: What failed and what was expected
  - `transcript_excerpt` PromptFeedbackTranscriptTurn[], required: Full conversation transcript; the feedback_text describes what went wrong
    - `role` 'agent' | 'user', required
    - `message` string, required

## Response `201`

Successful Response

- PromptFeedbackResponse
  - `id` string, required
  - `agent_id` string, required
  - `phone_call_id` string, nullable, required
  - `ai_agent_session_id` string, nullable, required
  - `feedback_text` string, required
  - `transcript_excerpt` PromptFeedbackTranscriptTurn[], required
    - `role` 'agent' | 'user', required
    - `message` string, required
  - `system_prompt_snapshot` string, required
  - `user_prompt_snapshot` string, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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