> ## Documentation Index
> Fetch the complete documentation index at: https://developers.heygen.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Send Feedback

> Tell HeyGen when an API result is good or bad with POST /v3/feedback: rate a video, translation, image or any call, add a comment and reason tags, and pass on what your own users said.

![](https://mintcdn.com/heygen-1fa696a7/hfMXXwJzjE7vBSYZ/images/theme/research-7.webp?fit=max\&auto=format\&n=hfMXXwJzjE7vBSYZ\&q=85\&s=02bcf90d74d8b9887ce224de6b8a130b)

[`POST /v3/feedback`](https://developers.heygen.com/reference/send-feedback) sends a rating, a comment, or both on one result: a video, a translation, an image, a Video Agent session, or any call by its request ID. Send it when your code or an AI agent checks a result, or when one of your users rates a result in your app.

HeyGen reads this feedback to find and fix quality problems. Sending it does not change the result, refund credits, or open a support ticket.

## Access

* Authenticate with an [API key](https://developers.heygen.com/docs/api-key.md) or an OAuth token. A restricted key needs the `feedback:write` [scope](https://developers.heygen.com/docs/api-key-permissions.md).
* Feedback is stored in the workspace that sends it.
* The endpoint has the standard write [rate limit](https://developers.heygen.com/docs/usage-limits.md#rate-limiting).

## Send feedback

```bash theme={null}
curl -X POST "https://api.heygen.com/v3/feedback" \
  -H "X-Api-Key: $HEYGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 6f1c2b7e-2d0a-4c55-9a43-3b9e8a1d7f20" \
  -d '{
    "resource_type": "video",
    "resource_id": "8d3c2f0a1b4e4c6d9e7f0a1b2c3d4e5f",
    "rating": "negative",
    "comment": "The lips drift out of sync after 0:12, and the background flickers in scene 2.",
    "tags": ["lip_sync", "background"]
  }'
```

| Field | Description |
| :- | :- |
| `resource_type` | Required. The name of the resource whose ID you send. See [Resource types](#resource-types). |
| `resource_id` | Required. The ID as the API returned it, up to 128 characters. |
| `rating` | `positive`, `neutral` or `negative`. |
| `comment` | What worked or what went wrong, up to 2,000 characters. A blank comment counts as none. |
| `tags` | Up to 10 reason keys in snake\_case, each up to 64 characters. Duplicates are dropped. |
| `submitted_by` | `agent` (default) when your code or an AI agent judged the result. `end_user` when you are passing on what one of your own users said. |

Send a `rating`, a `comment`, or both. Fields not in this table are rejected, so a typo returns a `400` instead of being dropped.

HeyGen does not look up `resource_id` when you send it, so a mistyped ID still returns `201`. Copy the ID exactly as the API returned it.

### Response

`201 Created` returns the stored feedback.

```json theme={null}
{
  "data": {
    "id": "4f0e1d2c3b4a49588776655443322110",
    "resource_type": "video",
    "resource_id": "8d3c2f0a1b4e4c6d9e7f0a1b2c3d4e5f",
    "rating": "negative",
    "comment": "The lips drift out of sync after 0:12, and the background flickers in scene 2.",
    "tags": ["lip_sync", "background"],
    "submitted_by": "agent",
    "created_at": 1794850000
  }
}
```

`created_at` is in Unix seconds. `rating`, `comment` and `tags` are left out when you did not send them.

## Resource types

Set `resource_type` to the name of the resource whose ID you send in `resource_id`.

| Created with | `resource_type` | `resource_id` |
| :- | :- | :- |
| [`POST /v3/videos`](https://developers.heygen.com/reference/create-video) | `video` | `video_id` |
| [`POST /v3/video-translations`](https://developers.heygen.com/reference/create-video-translation) | `video_translation` | One of `video_translation_ids` |
| [`POST /v3/video-agents`](https://developers.heygen.com/reference/create-video-agent-session) | `video_agent_session` | `session_id` |
| [`POST /v3/models/videos`](https://developers.heygen.com/reference/create-heygen-video) | `model_video` | `video_id` |
| [`POST /v3/models/images`](https://developers.heygen.com/reference/create-heygen-image) | `model_image_generation` | `generation_id` |
| [`POST /v3/lipsyncs`](https://developers.heygen.com/reference/create-lipsync) | `lipsync` | `lipsync_id` |
| [`POST /v3/hyperframes/renders`](https://developers.heygen.com/reference/create-hyperframes-render) | `hyperframes_render` | `render_id` |
| [`POST /v3/filler-word-removals`](https://developers.heygen.com/reference/create-filler-word-removal) | `filler_word_removal` | `filler_word_removal_id` |
| [`POST /v3/ai-clipping`](https://developers.heygen.com/reference/create-ai-clipping) | `ai_clipping` | `ai_clipping_id` |
| [`POST /v3/models/audio/voices`](https://developers.heygen.com/reference/create-or-retrain-an-audio-voice) | `voice` | `voice_id` |
| [`POST /v3/brand-kits`](https://developers.heygen.com/reference/create-brand-kit) | `brand_kit` | `brand_kit_id` |

To rate the video a Video Agent session made rather than the session, send `video` with its `video_id`. The [API reference](https://developers.heygen.com/reference/send-feedback.md) lists every accepted `resource_type`.

### Calls without a resource ID

Speech endpoints such as [`POST /v3/models/audio/tts`](https://developers.heygen.com/reference/generate-model-speech) return audio, not a resource ID. Send `request` as the `resource_type` and the response's `X-Request-Id` header as the `resource_id`.

```json theme={null}
{
  "resource_type": "request",
  "resource_id": "a41c9e2f7d0b4b8e9c3a5f6d7e8b9c0a",
  "rating": "negative",
  "comment": "\"Siobhan\" is read as \"See-oh-ban\".",
  "tags": ["pronunciation"]
}
```

## Pass on your users' feedback

If your app lets people rate what HeyGen made for them, forward each rating with `submitted_by` set to `end_user`, so HeyGen can tell your users' opinions from automated checks.

```json theme={null}
{
  "resource_type": "video_translation",
  "resource_id": "b7e2c4a19f3d4e6a8c0b1d2e3f4a5b6c",
  "rating": "positive",
  "comment": "The Spanish voice sounds like me.",
  "submitted_by": "end_user"
}
```

Keep the default, `agent`, for checks your code or an AI agent runs.

## Write useful feedback

* **Be specific.** Name the moment, the element or the setting. "The lips drift out of sync after 0:12" is more useful than "bad video".
* **Reuse a small set of tags.** Any snake\_case key is accepted. Pick a few, such as `lip_sync`, `voice`, `pronunciation`, `background` or `text_accuracy`, and send the same keys every time so reports group together.
* **Leave out personal data.** Do not put names, email addresses or other personal details in `comment` or `tags`.
* **Send one report per result.** For a batch, send feedback on each result that needs it, with its own ID.

## Retries

Send an `Idempotency-Key` header, such as a UUID, to make retries safe. A retry with the same key within 24 hours returns the first response and stores nothing new. A retry that arrives while the first request is still running gets `409` `request_in_progress`: wait, then retry.

## Errors

| Status | `error.code` | When |
| :- | :- | :- |
| `400` | `invalid_parameter` | No `rating` and no `comment`, an unknown field, a `resource_id` with characters an ID cannot have, a tag that is not snake\_case, more than 10 tags, or a `submitted_by` other than `agent` or `end_user`. `error.param` names the field at fault, when there is one. |
| `401` | [`unauthorized`](https://developers.heygen.com/docs/error-codes#unauthorized) | The API key is missing or invalid. |
| `403` | [`insufficient_api_key_scope`](https://developers.heygen.com/docs/error-codes#insufficient-api-key-scope) | The key does not have `feedback:write`. |
| `409` | `request_in_progress` | A request with the same `Idempotency-Key` is still running. |
| `429` | [`rate_limit_exceeded`](https://developers.heygen.com/docs/error-codes#rate-limit-exceeded) | Too many requests. Retry after the `Retry-After` header. |

> [!NOTE]
>
> Agents connected through the [HeyGen MCP server](https://developers.heygen.com/mcp/overview.md) send feedback with its `submit_feedback` tool instead of this endpoint.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.