LangSmith Datasets API

The datasets API from LangSmith — 28 operation(s) for datasets.

GitHub OpenAPI
Business capability
Artificial Intelligence Management BC-610.60

Operations 35

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

GET /api/v1/datasets List datasets · Read Datasets #
Ask an LLM
“Which datasets do I have in LangSmith?”
“Can I list only the datasets that contain a certain tag value?”
Tell an agent
List all my datasets.
Find datasets whose name contains {name_contains}.
POST /api/v1/datasets Create a dataset · Create Dataset #
Ask an LLM
“How do I create a new dataset to store my evaluation examples?”
“Can I set input and output schemas when creating a dataset?”
Tell an agent
Create a dataset named {name}.
Create dataset {name} with input schema {inputs_schema_definition} and output schema {outputs_schema_definition}.
DELETE /api/v1/datasets Delete multiple datasets · Delete Datasets #
Ask an LLM
“How do I delete several datasets at once?”
“Can I remove a batch of datasets by their IDs?”
Tell an agent destructive · confirm first
Delete datasets {dataset_ids}.
Remove the datasets with IDs {dataset_ids} in one request.
GET /api/v1/datasets/stream Stream datasets as JSON patches · Read Datasets Stream #
Ask an LLM
“Can I get a live stream of dataset changes as JSON patches?”
“Is there a streaming endpoint for datasets that returns patches instead of full records?”
Tell an agent
Stream all datasets as JSON patches.
Stream datasets whose name contains {name_contains} as JSON patches.
GET /api/v1/datasets/{dataset_id} Get a dataset · Read Dataset #
Ask an LLM
“What are the details of one dataset?”
“Can I fetch a single dataset by its ID?”
Tell an agent
Get dataset {dataset_id}.
Show me the details of dataset {dataset_id}.
DELETE /api/v1/datasets/{dataset_id} Delete a dataset · Delete Dataset #
Ask an LLM
“How do I delete one dataset?”
“Can I remove a single dataset by its ID?”
Tell an agent destructive · confirm first
Delete dataset {dataset_id}.
Remove the dataset with ID {dataset_id}.
PATCH /api/v1/datasets/{dataset_id} Update a dataset · Update Dataset #
Ask an LLM
“Can I rename an existing dataset or change its description?”
“Is it possible to update the input and output schemas of a dataset?”
Tell an agent
Rename dataset {dataset_id} to {name}.
Set the description of dataset {dataset_id} to {description}.
POST /api/v1/datasets/upload Create a dataset from a CSV or JSONL file · Upload Csv Dataset #
Ask an LLM
“How do I import a CSV file as a new dataset?”
“Can I map input and output keys when uploading a dataset from a file?”
Tell an agent
Create a dataset from file {file} with input keys {input_keys}.
Import {file} as a dataset named {name} with input keys {input_keys} and output keys {output_keys}.
POST /api/v1/datasets/upload-experiment Upload an already-run experiment · Upload Experiment #
Ask an LLM
“How do I upload the results of an experiment I already ran?”
“Can I attach experiment scores and metadata when uploading an experiment?”
Tell an agent
Upload experiment {experiment_name} with results {results} and start time {experiment_start_time}.
Upload experiment {experiment_name} with results {results}, start {experiment_start_time} and end {experiment_end_time}.
GET /api/v1/datasets/{dataset_id}/versions List a dataset's versions · Get Dataset Versions #
Ask an LLM
“What versions exist for a dataset?”
“Can I search a dataset's versions by example text?”
Tell an agent
List the versions of dataset {dataset_id}.
Find versions of dataset {dataset_id} that contain {search}.
GET /api/v1/datasets/{dataset_id}/versions/diff Diff two versions of a dataset · Diff Dataset Versions #
Ask an LLM
“How do I see what changed between two versions of a dataset?”
“Can I compare two specific dataset versions?”
Tell an agent
Diff version {from_version} against {to_version} of dataset {dataset_id}.
Show the changes between dataset {dataset_id} versions {from_version} and {to_version}.
GET /api/v1/datasets/{dataset_id}/version Get a dataset version by tag or time · Get Dataset Version #
Ask an LLM
“How do I fetch a dataset version tagged with a specific tag?”
“Can I read a dataset version as of a certain timestamp?”
Tell an agent
Get the version of dataset {dataset_id} tagged {tag}.
Show dataset {dataset_id} as of {as_of}.
PUT /api/v1/datasets/{dataset_id}/tags Tag a dataset version · Update Dataset Version #
Ask an LLM
“How do I tag a specific version of a dataset?”
“Can I set a tag on a dataset version by its timestamp?”
Tell an agent
Tag version {as_of} of dataset {dataset_id} with {tag}.
Set tag {tag} on dataset {dataset_id} at version {as_of}.
GET /api/v1/datasets/{dataset_id}/openai Download a dataset as OpenAI Evals Jsonl · Download Dataset Openai #
Ask an LLM
“How do I export a dataset as OpenAI Evals Jsonl for fine-tuning?”
“Can I download a dataset version as OpenAI Evals format?”
Tell an agent
Download dataset {dataset_id} as OpenAI Evals Jsonl.
Export dataset {dataset_id} as OpenAI Evals Jsonl as of {as_of}.
GET /api/v1/datasets/{dataset_id}/openai_ft Export a dataset as OpenAI JSONL · Download Dataset Openai Ft #
Ask an LLM
“How do I export a dataset in OpenAI fine-tuning JSONL format?”
“Can I download an older version of a dataset as OpenAI JSONL?”
Tell an agent
Download dataset {dataset_id} as OpenAI JSONL.
Export {dataset_id} in OpenAI fine-tuning format as of {as_of}.
GET /api/v1/datasets/{dataset_id}/csv Download a dataset as CSV · Download Dataset Csv #
Ask an LLM
“How do I download a dataset as a CSV file?”
“Can I export a dataset version as CSV?”
Tell an agent
Download dataset {dataset_id} as CSV.
Export dataset {dataset_id} as CSV as of {as_of}.
GET /api/v1/datasets/{dataset_id}/jsonl Download a dataset as JSONL · Download Dataset Jsonl #
Ask an LLM
“Can I export a dataset as JSONL?”
“What does a dataset look like when downloaded as JSONL?”
Tell an agent
Download dataset {dataset_id} as JSONL.
Export dataset {dataset_id} as JSONL as of {as_of}.
POST /api/v1/datasets/{dataset_id}/runs Get dataset examples with runs · Read Examples With Runs #
Ask an LLM
“How do I fetch the examples in a dataset along with the runs that scored them?”
“Can I preview the examples and their runs for a session?”
Tell an agent
Get the examples in dataset {dataset_id} with runs for sessions {session_ids}.
Show {limit} examples from dataset {dataset_id} with runs for sessions {session_ids}, sorted by {sort_params}.
POST /api/v1/datasets/{dataset_id}/group/runs Group dataset examples by a metadata key · Read Examples With Runs Grouped #
Ask an LLM
“How do I group a dataset's examples by a metadata key and show the runs for each group?”
“Can I see how each group of examples performed in a session?”
Tell an agent
Group examples in dataset {dataset_id} by {group_by} on metadata key {metadata_key} for sessions {session_ids}.
Show the top {per_group_limit} examples per {group_by} group for sessions {session_ids} in dataset {dataset_id}.
POST /api/v1/datasets/{dataset_id}/runs/delta Count regressions and improvements per example · Read Delta #
Ask an LLM
“How do I see how much each example regressed or improved between two sessions?”
“Can I compare a baseline session against several comparison sessions for a feedback key?”
Tell an agent
Count regressions and improvements for each example in dataset {dataset_id} between sessions {baseline_session_id} and {comparison_session_ids} for feedback key {feedback_key}.
Show the delta in scores for dataset {dataset_id} using {feedback_key} between sessions {baseline_session_id} and {comparison_session_ids}.
POST /api/v1/datasets/{dataset_id}/runs/delta/stream Stream feedback deltas across runs · Read Delta Stream #
Ask an LLM
“How do I see feedback deltas for several keys across my runs in real time?”
“Can I stream feedback deltas for a baseline versus comparison session?”
Tell an agent
Stream feedback deltas for keys {feedback_keys} from baseline {baseline_session_id} vs {comparison_session_ids} in dataset {dataset_id}.
Show incremental feedback deltas for {feedback_keys} in dataset {dataset_id} between {baseline_session_id} and {comparison_session_ids}.
POST /api/v1/datasets/{dataset_id}/experiments/grouped Stream grouped experiment statistics · Read Grouped Experiments #
Ask an LLM
“How do I get grouped and aggregated experiment results for a dataset?”
“Can I stream grouped stats for experiments tagged with a value?”
Tell an agent
Stream grouped experiment statistics for metadata keys {metadata_keys} in dataset {dataset_id}.
Aggregate experiments in dataset {dataset_id} tagged {tag_value_id} by {metadata_keys}.
GET /api/v1/datasets/{dataset_id}/share Check a dataset's sharing state · Read Dataset Share State #
Ask an LLM
“Is my dataset currently shared with other projects?”
“What is the current share state of a dataset?”
Tell an agent
Get the share state of dataset {dataset_id}.
Check whether dataset {dataset_id} is shared.
PUT /api/v1/datasets/{dataset_id}/share Share a dataset with projects · Share Dataset #
Ask an LLM
“How do I share a dataset with other projects?”
“Can I share a dataset and include its projects?”
Tell an agent
Share dataset {dataset_id}.
Share dataset {dataset_id} with projects {share_projects}.
DELETE /api/v1/datasets/{dataset_id}/share Unshare a dataset · Unshare Dataset #
Ask an LLM
“How do I stop sharing a dataset?”
“Can I unshare a dataset I shared earlier?”
Tell an agent destructive · confirm first
Unshare dataset {dataset_id}.
Stop sharing dataset {dataset_id}.
GET /api/v1/datasets/{dataset_id}/comparative List comparative experiments · Read Comparative Experiments #
Ask an LLM
“Which comparative experiments exist for a dataset?”
“Can I filter comparative experiments by name?”
Tell an agent
List comparative experiments in dataset {dataset_id}.
Find comparative experiments in dataset {dataset_id} whose name contains {name_contains}.
POST /api/v1/datasets/comparative Create a comparative experiment · Create Comparative Experiment #
Ask an LLM
“How do I compare several experiments side by side?”
“Can I create a comparative experiment from a list of experiment IDs?”
Tell an agent
Create a comparative experiment from experiments {experiment_ids}.
Create comparative experiment {name} comparing {experiment_ids}.
DELETE /api/v1/datasets/comparative/{comparative_experiment_id} Delete a comparative experiment · Delete Comparative Experiment #
Ask an LLM
“How do I delete a comparative experiment?”
“Can I remove a side-by-side comparison experiment?”
Tell an agent destructive · confirm first
Delete comparative experiment {comparative_experiment_id}.
Remove side-by-side comparison {comparative_experiment_id}.
POST /api/v1/datasets/clone Clone a dataset · Clone Dataset #
Ask an LLM
“How do I copy a dataset to a new dataset ID?”
“Can I clone a dataset as of a specific time?”
Tell an agent
Clone dataset {source_dataset_id} into {target_dataset_id}.
Copy dataset {source_dataset_id} to {target_dataset_id} as of {as_of}.
GET /api/v1/datasets/{dataset_id}/splits Get a dataset's splits · Get Dataset Splits #
Ask an LLM
“What are the train, test and validation splits of a dataset?”
“Can I read a dataset's splits as of a certain time?”
Tell an agent
Get the splits of dataset {dataset_id}.
Show dataset {dataset_id}'s splits as of {as_of}.
PUT /api/v1/datasets/{dataset_id}/splits Update a dataset's splits · Update Dataset Splits #
Ask an LLM
“How do I change which examples go into a dataset's train or test split?”
“Can I remove examples from a split?”
Tell an agent
Set split {split_name} of dataset {dataset_id} to examples {examples}.
Update dataset {dataset_id} split {split_name} with {examples} and remove {remove}.
POST /api/v1/datasets/{dataset_id}/generate Generate synthetic examples · Generate #
Ask an LLM
“How do I generate synthetic examples for a dataset?”
“Can I add a set number of new examples to a dataset?”
Tell an agent
Generate {num_examples} synthetic examples for dataset {dataset_id}.
Add {num_examples} generated examples to dataset {dataset_id}.
POST /api/v1/datasets/playground_experiment/batch Run a playground experiment in batch · Dataset Handler #
Ask an LLM
“How do I run a playground experiment on a dataset in batch?”
“Can I pass a manifest and secrets to a playground experiment run?”
Tell an agent
Run playground experiment {project_name} on dataset {dataset_id} with manifest {manifest} and secrets {secrets}.
Batch-run playground experiment {project_name} on dataset {dataset_id} using {manifest}, {secrets} and options {options}.
POST /api/v1/datasets/playground_experiment/stream Stream a playground experiment run · Stream Dataset Handler #
Ask an LLM
“How do I stream a playground experiment run instead of waiting for the batch?”
“Can I stream a playground experiment with a manifest and secrets?”
Tell an agent
Stream playground experiment {project_name} on dataset {dataset_id} with manifest {manifest} and secrets {secrets}.
Stream playground experiment {project_name} on dataset {dataset_id} using {manifest}, {secrets} and options {options}.
POST /api/v1/datasets/studio_experiment Run a Studio experiment · Studio Experiment #
Ask an LLM
“How do I run an experiment in the Studio playground?”
“Can I run a Studio experiment with evaluator rules?”
Tell an agent
Run Studio experiment {project_name} on dataset {dataset_id}.
Run Studio experiment {project_name} on dataset {dataset_id} with evaluator rules {evaluator_rules}.

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