LangSmith Examples API

The examples API from LangSmith — 9 operation(s) for examples.

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

GET /api/v1/examples/count Count examples in a dataset · Count Examples #
Ask an LLM
“How many examples are in a dataset matching a filter?”
“Can I count examples that contain certain text or metadata?”
Tell an agent
Count examples in dataset {dataset} matching {filter}.
Count examples in dataset {dataset} with full text {full_text_contains}.
GET /api/v1/examples/{example_id} Get one example · Read Example #
Ask an LLM
“How do I fetch a single labeled example by its ID?”
“Can I read an example as of a specific version?”
Tell an agent
Get example {example_id}.
Show example {example_id} as of version {as_of}.
PATCH /api/v1/examples/{example_id} Update one example · Update Example #
Ask an LLM
“How do I change the inputs or outputs of a single example?”
“Can I overwrite an existing example's metadata?”
Tell an agent
Update example {example_id} with inputs {inputs}.
Set outputs {outputs} on example {example_id}.
DELETE /api/v1/examples/{example_id} Soft delete one example · Delete Example #
Ask an LLM
“How do I remove a single example from the latest version of a dataset?”
“Does deleting one example also delete its attachments?”
Tell an agent destructive · confirm first
Soft delete example {example_id} from the latest version of its dataset.
Remove example {example_id} but keep its attachments.
GET /api/v1/examples List examples in a dataset · Read Examples #
Ask an LLM
“Which examples are in a dataset?”
“Can I list examples that contain certain text or metadata?”
Tell an agent
List examples in dataset {dataset}.
List examples in dataset {dataset} matching {filter}.
POST /api/v1/examples Create an example · Create Example #
Ask an LLM
“How do I add a labeled example to a dataset?”
“Can I create an example from a source run's inputs and outputs?”
Tell an agent
Create example {inputs} in dataset {dataset_id}.
Add example {inputs} to dataset {dataset_id} from run {source_run_id}.
DELETE /api/v1/examples Soft delete several examples · Delete Examples #
Ask an LLM
“How do I remove multiple examples from the latest version of a dataset?”
“Can I delete several examples at once?”
Tell an agent destructive · confirm first
Soft delete examples {example_ids}.
Remove examples {example_ids} from the latest version of their dataset.
POST /api/v1/examples/bulk Create many examples in one request · Create Examples #
Ask an LLM
“Can I add a batch of labeled examples to a dataset in a single call?”
“Is there a bulk create for examples?”
Tell an agent
Create a batch of examples in one request.
Bulk add several labeled examples to a dataset.
PATCH /api/v1/examples/bulk Update examples in bulk (legacy) · Legacy Update Examples #
Ask an LLM
“Is there an older bulk update for examples that handles attachments?”
“Can I update many examples at once with the legacy endpoint?”
Tell an agent
Use the legacy bulk update to change several examples.
Update examples in bulk with the legacy endpoint.
POST /api/v1/examples/upload/{dataset_id} Upload examples from a CSV · Upload Examples From Csv #
Ask an LLM
“How do I load labeled examples from a CSV file into a dataset?”
“Can I map CSV columns to inputs and outputs when uploading?”
Tell an agent
Upload CSV {file} to dataset {dataset_id} with input columns {input_keys}.
Load {file} into dataset {dataset_id}, mapping {input_keys} to inputs and {output_keys} to outputs.
POST /api/v1/examples/validate Validate an example · Validate Example #
Ask an LLM
“How do I check that an example's inputs and outputs are valid?”
“Can I validate a single example before adding it to a dataset?”
Tell an agent
Validate this example.
Check that the example's inputs and outputs are valid.
POST /api/v1/examples/validate/bulk Validate examples in bulk · Validate Examples #
Ask an LLM
“Can I validate a batch of examples at once?”
“Is there a bulk validation for examples?”
Tell an agent
Validate these examples in bulk.
Check a batch of examples for validity.
POST /v1/platform/datasets/examples/delete Hard delete examples · Hard Delete Examples #
Ask an LLM
“How do I permanently remove all versions of examples from a dataset?”
“Does hard-deleting examples also remove their attachments?”
Tell an agent destructive · confirm first
Hard delete examples {example_ids}.
Permanently remove all versions of examples {example_ids} from their dataset.
POST /v1/platform/datasets/{dataset_id}/examples Upload examples via multipart form · Upload Examples #
Ask an LLM
“Can I upload examples to a dataset with attachments in a multipart form?”
“What does each form part need for an example upload?”
Tell an agent
Upload examples to dataset {dataset_id} as multipart form data.
Add an example with inputs {inputs} to dataset {dataset_id} in a multipart upload.
PATCH /v1/platform/datasets/{dataset_id}/examples Update examples via multipart form · Update Examples #
Ask an LLM
“Can I update existing examples in a dataset with attachments in a multipart form?”
“What does each form part need for an example update?”
Tell an agent
Update examples in dataset {dataset_id} as multipart form data.
Change existing example {example_id} in dataset {dataset_id} with inputs {inputs}.

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