Skip to main content
POST
Error

Authorizations

X-API-Key
string
header
required

Body

application/json

Schema used for creating feedback.

key
string
required
Maximum string length: 180
created_at
string<date-time>
modified_at
string<date-time>
score
value
comment
string | null
correction
feedback_group_id
string<uuid> | null
comparative_experiment_id
string<uuid> | null
run_id
string<uuid> | null
session_id
string<uuid> | null

Required unless the feedback is addressed by address. The ID of the tracing project (session) the feedback belongs to.

address
string

Beta. Only supported in workspaces where Agent addressing is enabled; other workspaces get a 403. Addresses the tracing project through an Agent environment, as lrn:agents/{id}/environments/{environment}, instead of session_id. The id is 1 to 63 lowercase ASCII letters, digits, or hyphens, starting with a letter and ending with a letter or digit. The environment is local, development, staging, or production, matched case-insensitively. Never combined with session_id. The Agent and the environment must already exist; sending feedback does not create them.

Example:

"lrn:agents/support-agent/environments/production"

trace_id
string<uuid> | null
start_time
string<date-time> | null
feedback_thread_id
string | null
extend_trace_retention
boolean
default:true
id
string<uuid>
feedback_source
AppFeedbackSource · object

Feedback from the LangChainPlus App.

feedback_config
FeedbackConfig · object | null
error
boolean | null
deprecated

Deprecated. Use extra.error instead. If both values are provided, error takes precedence.

extra
Extra · object | null

Response

Successful Response

Schema for getting feedback.

key
string
required
id
string<uuid>
required
created_at
string<date-time>
modified_at
string<date-time>
score
value
comment
string | null
correction
feedback_group_id
string<uuid> | null
comparative_experiment_id
string<uuid> | null
run_id
string<uuid> | null
session_id
string<uuid> | null
trace_id
string<uuid> | null
start_time
string<date-time> | null
is_root
boolean
default:false
feedback_source
FeedbackSource · object | null

The feedback source loaded from the database.

extra
Extra · object | null
feedback_thread_id
string | null