LangSmith Runs API

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

GitHub OpenAPI

Operations 7

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 /runs Queue a single run for ingestion · Create a Run #
Ask an LLM
“How do I queue one trace run for ingestion?”
“Can I send a single run with inputs, outputs and events in one request?”
Tell an agent
Queue a single run named {name} of type {run_type}.
Ingest one run with inputs {inputs} and outputs {outputs}.
POST /runs/batch Ingest runs in a JSON batch · Ingest Runs (Batch JSON) #
Ask an LLM
“Can I send many runs as one JSON payload?”
“What's the fastest way to bulk ingest runs?”
Tell an agent
Ingest these runs in a JSON batch: {post}.
Bulk ingest runs {post} and patch {patch} in one request.
POST /runs/multipart Ingest runs, feedback and attachments in one upload · Ingest Runs (Multipart) #
Ask an LLM
“How do I send runs, feedback and files to LangSmith in a single multipart request?”
“Can I upload a binary attachment for a run alongside its run data?”
Tell an agent
Upload a multipart request that creates run {run_id} with its JSON payload {post_run}.
Attach file {filename} to run {run_id} in a multipart upload.
PATCH /runs/{run_id} Update a run · Update a Run #
Ask an LLM
“Can I update a run's status or error after it finishes?”
“What fields can I change on an existing run?”
Tell an agent
Update run {run_id} with status {status}.
Set the error on run {run_id} to {error}.
POST /v2/runs/query Query runs with a natural-language filter · Query runs #
Ask an LLM
“Can I find runs using plain English instead of a filter expression?”
“Which runs errored in a given time range?”
Tell an agent
Find runs matching {ai_query}.
List runs in projects {project_ids} that errored.
GET /v2/runs/{run_id} Get a single run by ID · Get a single run #
Ask an LLM
“How do I fetch one run by its ID?”
“Can I select specific fields when retrieving a run?”
Tell an agent
Get run {run_id} from project {project_id} started at {start_time}.
Show only {selects} of run {run_id}.
GET /v2/traces/{trace_id}/runs List runs in a trace · List runs in a trace #
Ask an LLM
“What runs happened in a trace between two times?”
“Can I filter the runs inside a trace?”
Tell an agent
List runs in trace {trace_id} in project {project_id} between {min_start_time} and {max_start_time}.
Show trace {trace_id} runs matching {filter}.

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-runs-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-runs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LangSmith Runs 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 (49 KB total) ---
# Full source: https://artifacts.apis.io/langsmith/openapi/langsmith-runs-api-openapi.yml