LangSmith Feedback API

The feedback API from LangSmith — 7 operation(s) for feedback.

GitHub OpenAPI

Operations 15

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /api/v1/feedback/formulas Create a feedback formula · Create Feedback Formula Ep #
Ask an LLM
“How do I define a new scoring formula for feedback?”
“Can a feedback formula aggregate scores by average or sum?”
Tell an agent
Create feedback formula {feedback_key} with parts {formula_parts} using aggregation {aggregation_type}.
Add a new scoring formula to dataset {dataset_id}.
GET /api/v1/feedback/formulas List feedback formulas · List Feedback Formula Ep #
Ask an LLM
“Which feedback formulas are defined for a dataset?”
“Can I list the scoring formulas used in a tracing session?”
Tell an agent
List feedback formulas for dataset {dataset_id}.
Show the scoring formulas in session {session_id}.
GET /api/v1/feedback/formulas/{feedback_formula_id} Get a feedback formula · Get Feedback Formula Ep #
Ask an LLM
“What formula parts and aggregation does a given feedback formula use?”
“Can I look up one scoring formula by id?”
Tell an agent
Get feedback formula {feedback_formula_id}.
Show the scoring parts of formula {feedback_formula_id}.
PUT /api/v1/feedback/formulas/{feedback_formula_id} Update a feedback formula · Update Feedback Formula Ep #
Ask an LLM
“How do I change the formula parts of an existing feedback formula?”
“Can I switch an existing scoring formula to a different aggregation type?”
Tell an agent
Update feedback formula {feedback_formula_id} to parts {formula_parts} with aggregation {aggregation_type} and key {feedback_key}.
Replace the scoring formula {feedback_formula_id}.
DELETE /api/v1/feedback/formulas/{feedback_formula_id} Delete a feedback formula · Delete Feedback Formula Endpoint #
Ask an LLM
“How do I remove a scoring formula I no longer use?”
“Can I delete a feedback formula by id?”
Tell an agent destructive · confirm first
Delete feedback formula {feedback_formula_id}.
Remove the scoring formula {feedback_formula_id}.
GET /api/v1/feedback/{feedback_id} Get a feedback entry · Read Feedback #
Ask an LLM
“What score and comment were given in a specific feedback entry?”
“Can I fetch one feedback record by id?”
Tell an agent
Get feedback {feedback_id}.
Show the score and comment in feedback {feedback_id}.
PATCH /api/v1/feedback/{feedback_id} Update a feedback entry · Update Feedback #
Ask an LLM
“How do I correct a score or comment in an existing feedback entry?”
“Can I change the correction on a feedback I already submitted?”
Tell an agent
Set the score in feedback {feedback_id} to {score}.
Update the comment on feedback {feedback_id} to {comment}.
DELETE /api/v1/feedback/{feedback_id} Delete a feedback entry · Delete Feedback #
Ask an LLM
“How do I remove a single feedback entry?”
“Can I delete one feedback record by id?”
Tell an agent destructive · confirm first
Delete feedback {feedback_id}.
Remove the feedback entry {feedback_id}.
GET /api/v1/feedback List feedback entries · Read Feedbacks #
Ask an LLM
“Which feedback entries were given to a particular run?”
“Can I list only the feedback entries with a comment?”
Tell an agent
List feedback for run {run}.
Show feedback entries with a comment.
POST /api/v1/feedback Submit feedback for a run · Create Feedback #
Ask an LLM
“How do I give a score to a run through the API?”
“Can I submit a feedback entry with a correction for a run?”
Tell an agent
Submit feedback {key} with score {score} for run {run_id}.
Record feedback {key} with comment {comment} for run {run_id}.
POST /api/v1/feedback/eager Submit feedback for a run already in the app · Eagerly Create Feedback #
Ask an LLM
“How do I submit feedback for a run that is already visible in the app?”
“Can I send feedback for a run that is already in the database?”
Tell an agent
Submit feedback {key} for run {run_id} assuming the run is already in the app.
Record feedback {key} on run {run_id} eagerly.
POST /api/v1/feedback/tokens Create a feedback ingest token · Create Feedback Ingest Token #
Ask an LLM
“How do I generate a token to submit feedback for a run?”
“Can I create a new feedback ingest token?”
Tell an agent
Create a feedback ingest token.
Generate a new feedback token for a run.
GET /api/v1/feedback/tokens List feedback ingest tokens for a run · List Feedback Ingest Tokens #
Ask an LLM
“What feedback ingest tokens exist for a run?”
“Can I list the tokens I can use to submit feedback for a run?”
Tell an agent
List feedback ingest tokens for run {run_id}.
Show the feedback tokens for run {run_id}.
GET /api/v1/feedback/tokens/{token} Submit feedback with a token (GET) · Create Feedback With Token Get #
Ask an LLM
“Can I submit feedback using a token through a GET request?”
“What score and comment can I give with a feedback token?”
Tell an agent
Submit feedback with score {score} using token {token}.
Give feedback with comment {comment} via token {token}.
POST /api/v1/feedback/tokens/{token} Submit feedback with a token (POST) · Create Feedback With Token Post #
Ask an LLM
“How do I submit feedback for a run using a token in a POST body?”
“Can I attach metadata when submitting feedback with a token?”
Tell an agent
Submit feedback with score {score} and comment {comment} using token {token}.
Submit feedback with token {token} and metadata {metadata}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/langsmith:langsmith-feedback-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

langsmith-feedback-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LangSmith Feedback API
  description: 'The LangSmith API is used to programmatically create and manage LangSmith resources.


    ## Host

    https://api.smith.langchain.com


    ## Authentication

    To authenticate with the LangSmith API, set the `X-Api-Key` header

    to a valid LangSmith API key.'
  version: 0.1.0
servers:
- url: /
tags:


# --- truncated at 32 KB (35 KB total) ---
# Full source: https://artifacts.apis.io/langsmith/openapi/langsmith-feedback-api-openapi.yml