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

# Create Feedback

`POST /api/v1/feedback`

Create a new feedback.

## Request body

- FeedbackCreateSchema — Schema used for creating feedback.
  - `created_at` string, date-time
  - `modified_at` string, date-time
  - `key` string, required
  - `score` union
    - number
    - integer
    - boolean
  - `value` union
    - number
    - integer
    - boolean
    - string
    - object
  - `comment` string, nullable
  - `correction` union
    - object
    - string
  - `feedback_group_id` string, uuid, nullable
  - `comparative_experiment_id` string, uuid, nullable
  - `run_id` string, uuid, nullable
  - `session_id` string, uuid, nullable
  - `trace_id` string, uuid, nullable
  - `start_time` string, date-time, nullable
  - `id` string, uuid
  - `feedback_source` union
    - AppFeedbackSource — Feedback from the LangChainPlus App.
      - `type` 'app'
      - `metadata` object, nullable
    - APIFeedbackSource — API feedback source.
      - `type` 'api'
      - `metadata` object, nullable
    - ModelFeedbackSource — Model feedback source.
      - `type` 'model'
      - `metadata` object, nullable
    - AutoEvalFeedbackSource — Auto eval feedback source.
      - `type` 'auto_eval'
      - `metadata` object, nullable
  - `feedback_config` FeedbackConfig
    - `type` 'continuous' | 'categorical' | 'freeform', required — Enum for feedback types.
    - `min` number, nullable
    - `max` number, nullable
    - `categories` FeedbackCategory[], nullable
      - `value` number, required
      - `label` string, nullable
  - `error` boolean, nullable

## Response `200`

Successful Response

- FeedbackSchema — Schema for getting feedback.
  - `created_at` string, date-time
  - `modified_at` string, date-time
  - `key` string, required
  - `score` union
    - number
    - integer
    - boolean
  - `value` union
    - number
    - integer
    - boolean
    - string
    - object
  - `comment` string, nullable
  - `correction` union
    - object
    - string
  - `feedback_group_id` string, uuid, nullable
  - `comparative_experiment_id` string, uuid, nullable
  - `run_id` string, uuid, nullable
  - `session_id` string, uuid, nullable
  - `id` string, uuid, required
  - `trace_id` string, uuid, nullable
  - `start_time` string, date-time, nullable
  - `is_root` boolean
  - `feedback_source` FeedbackSource — The feedback source loaded from the database.
    - `type` string, nullable
    - `metadata` object, nullable
    - `user_id` string, uuid, nullable
    - `ls_user_id` string, uuid, nullable
    - `user_name` string, nullable
  - `extra` object, nullable
  - `feedback_thread_id` string, nullable

## Other responses

- `422` — Validation Error

---

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