---
title: "Add user feedback for a GenAi request prompt"
method: POST
path: "/prompts/feedback"
tags: ["Prompt"]
---

# Add user feedback for a GenAi request prompt

`POST /prompts/feedback`

## Request body

- PromptFeedback — User provided feedback for a generativeAi request
  - `prompt_id` string — The id of the prompt request
  - `session_id` string — Session id for a series of related prompts or traces
  - `rating` number, float — The rating normalized to a 0 to 1 scale
  - `rating_raw` string — The raw rating e.g. thumbs_up
  - `timestamp` integer — The time the feedback was received in epoch millis
  - `user_id` string — The id of the user asking for the prompt
  - `workspace_id` string, required — The workspace id
  - `comment` string — Optional user comment about the prompt or model response

## Response `202`

Prompt feedback accepted

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `404` — Entity not found
- `default` — Unknown error

---

[API](https://skmtc.net/mabl/apis/mabl-api.md) · [All operations](https://skmtc.net/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/d0fc0114da66/schema)
