---
title: "Create Feedback From Token"
method: POST
path: "/agent/token_feedback"
---

# Create Feedback From Token

`POST /agent/token_feedback`

Send feedback on an individual run to langsmith.

## Request body

- FeedbackCreateRequestTokenBased — Shared information between create requests of feedback and feedback objects.
  - `token_or_url` union, required
    - string, uuid
    - string
  - `score` union
    - number
    - integer
    - boolean
  - `value` union
    - number
    - integer
    - boolean
    - string
    - object
  - `comment` string, nullable
  - `correction` object, nullable
  - `metadata` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/datawhalechina/apis/data-agent-backend.md) · [All operations](https://skmtc.dev/datawhalechina/apis/data-agent-backend/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datawhalechina/data-agent-backend/revisions/0c046ac2b029/schema)
