Comet Datasets API

Dataset resources

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Artificial Intelligence Management BC-610.60

Operations 36

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 /v1/private/datasets/{id}/items/changes Apply changes to a dataset version · Apply changes to dataset items #
Ask an LLM
“How do I add, edit or delete dataset items with conflict detection?”
“Can I force a dataset version creation even if the base version is stale?”
Tell an agent
Apply these changes to dataset {id}.
Apply changes to dataset {id} with override {override}.
PATCH /v1/private/datasets/items/batch Update many dataset items at once · Batch update dataset items #
Ask an LLM
“Can I update a batch of dataset items by their IDs?”
“What happens to tags when I update items with a filter instead of IDs?”
Tell an agent
Update dataset items {ids} in {dataset_id} with {update}.
Batch update items matching {filters} in dataset {dataset_id} using {update}.
GET /v1/private/datasets Find datasets · Find datasets #
Ask an LLM
“Which datasets exist in my project?”
“Can I list only datasets used by experiments or optimizations?”
Tell an agent
Find datasets in project {project_id}.
List datasets named {name}.
POST /v1/private/datasets Create a dataset · Create dataset #
Ask an LLM
“How do I create a new dataset?”
“Can I create a dataset with a specific visibility and tags?”
Tell an agent
Create a dataset named {name}.
Create dataset {name} in project {project_name} with visibility {visibility}.
PUT /v1/private/datasets/items Upsert dataset items · Create/update dataset items #
Ask an LLM
“How do I create new dataset items and update existing ones in one call?”
“What happens to carry-forward rows when I upsert items?”
Tell an agent
Upsert items {items} into dataset {dataset_id}.
Upsert items {items} into dataset {dataset_id} from carry-forward version {copy_from_version_id}.
POST /v1/private/datasets/items/from-csv Create dataset items from a CSV · Create dataset items from CSV file #
Ask an LLM
“How do I load dataset items from a CSV file?”
“Is CSV item creation processed in batches?”
Tell an agent
Create dataset items from CSV {file} in dataset {dataset_id}.
Load {file} into dataset {dataset_id} as CSV items.
POST /v1/private/datasets/items/from-json Create dataset items from JSON · Create dataset items from JSON file #
Ask an LLM
“How do I load dataset items from a JSON or JSONL file?”
“Are reserved keys like id and source handled correctly when importing JSON?”
Tell an agent
Create dataset items from {file} in {dataset_id} as {format}.
Load {file} into dataset {dataset_id} as {format} items.
POST /v1/private/datasets/{dataset_id}/items/from-spans Create dataset items from spans · Create dataset items from spans #
Ask an LLM
“How do I turn a set of spans into dataset items?”
“Can I enrich span data when creating dataset items?”
Tell an agent
Create dataset items from spans {span_ids} in {dataset_id} with {enrichment_options}.
Add spans {span_ids} to dataset {dataset_id} using enrichment {enrichment_options}.
POST /v1/private/datasets/{dataset_id}/items/from-traces Create dataset items from traces · Create dataset items from traces #
Ask an LLM
“How do I create dataset items from a set of traces?”
“Can I enrich trace data when creating dataset items?”
Tell an agent
Create dataset items from traces {trace_ids} in {dataset_id} with {enrichment_options}.
Add traces {trace_ids} to dataset {dataset_id} using enrichment {enrichment_options}.
GET /v1/private/datasets/{id} Get a dataset · Get dataset by id #
Ask an LLM
“What are the details of one dataset?”
“Can I fetch a dataset by its ID?”
Tell an agent
Get dataset {id}.
Show the details of dataset {id}.
PUT /v1/private/datasets/{id} Update a dataset · Update dataset by id #
Ask an LLM
“Can I rename or change the visibility of a dataset?”
“How do I add tags to an existing dataset?”
Tell an agent
Rename dataset {id} to {name}.
Set the visibility of dataset {id} to {visibility}.
DELETE /v1/private/datasets/{id} Delete a dataset by ID · Delete dataset by id #
Ask an LLM
“How do I delete a dataset using its ID?”
“Can I remove a dataset by ID?”
Tell an agent destructive · confirm first
Delete dataset {id}.
Remove the dataset with ID {id}.
POST /v1/private/datasets/delete Delete a dataset by name · Delete dataset by name #
Ask an LLM
“Can I delete a dataset by its name?”
“What happens if I delete a dataset by name instead of ID?”
Tell an agent destructive · confirm first
Delete the dataset named {dataset_name}.
Remove dataset {dataset_name} from project {project_name}.
POST /v1/private/datasets/items/delete Delete dataset items · Delete dataset items #
Ask an LLM
“How do I delete specific dataset items by ID?”
“Can I delete all items in a dataset matching a filter?”
Tell an agent destructive · confirm first
Delete items {item_ids} from dataset {dataset_id}.
Delete items matching {filters} in dataset {dataset_id}.
POST /v1/private/datasets/delete-batch Delete several datasets at once · Delete datasets #
Ask an LLM
“Can I delete multiple datasets in one request?”
“How do I bulk delete datasets by ID?”
Tell an agent destructive · confirm first
Delete datasets {ids}.
Bulk remove datasets {ids}.
GET /v1/private/datasets/export-jobs/{jobId}/download Download a dataset export · Download dataset export file #
Ask an LLM
“How do I download the CSV export of a dataset?”
“Where do I get the exported file for a dataset export job?”
Tell an agent
Download the dataset export file for job {jobId}.
Get the CSV export for dataset export job {jobId}.
POST /v1/private/datasets/{id}/expansions Generate synthetic samples for a dataset · Expand dataset with synthetic samples #
Ask an LLM
“Can I expand a dataset with synthetic samples using a model?”
“How many synthetic samples can I generate for a dataset?”
Tell an agent
Expand dataset {id} with {sample_count} samples using {model}.
Generate synthetic samples for dataset {id} with {model} and preserve {preserve_fields}.
GET /v1/private/datasets/{id}/items/experiments/items Find dataset items used in experiments · Find dataset items with experiment items #
Ask an LLM
“Which dataset items were used in specific experiments?”
“Can I search dataset items by experiment ID?”
Tell an agent
Find dataset items in dataset {id} used by experiments {experiment_ids}.
Show dataset items from experiments {experiment_ids} matching {filters}.
POST /v1/private/datasets/retrieve Get a dataset by name · Get dataset by name #
Ask an LLM
“How do I look up a dataset by its name?”
“Can I fetch a dataset by name within a project?”
Tell an agent
Get the dataset named {dataset_name}.
Find dataset {dataset_name} in project {project_name}.
GET /v1/private/datasets/{id}/items/experiments/items/stats Get experiment item stats for a dataset · Get experiment items stats for dataset #
Ask an LLM
“How many experiment items are linked to a dataset?”
“Can I get stats for experiment items in a dataset?”
Tell an agent
Get experiment item stats for dataset {id} on experiments {experiment_ids}.
Count experiment items in dataset {id} for experiments {experiment_ids}.
GET /v1/private/datasets/export-jobs/{jobId} Check a dataset export job · Get dataset export job status #
Ask an LLM
“Has my dataset export finished?”
“What status is a dataset export job in?”
Tell an agent
Get dataset export job {jobId}.
Check the status of export job {jobId}.
GET /v1/private/datasets/export-jobs List dataset export jobs · Get all dataset export jobs #
Ask an LLM
“Which dataset exports have I started?”
“Can I see all my dataset export jobs?”
Tell an agent
List all dataset export jobs.
Show every dataset export job in my workspace.
GET /v1/private/datasets/items/{itemId} Get one dataset item · Get dataset item by id #
Ask an LLM
“What are the details of a single dataset item?”
“Can I fetch one item by its ID?”
Tell an agent
Get dataset item {itemId}.
Show me the item {itemId} in my dataset.
PATCH /v1/private/datasets/items/{itemId} Partially update a dataset item · Partially update dataset item by id #
Ask an LLM
“Can I update just some fields of a dataset item?”
“How do I change the source or evaluators on one item?”
Tell an agent
Update dataset item {itemId} with source {source} and data {data}.
Set evaluators {evaluators} on item {itemId}, keeping source {source} and data {data}.
GET /v1/private/datasets/{id}/items List a dataset's items · Get dataset items #
Ask an LLM
“What are the items in a dataset version?”
“Can I filter a dataset's items by a condition?”
Tell an agent
List items in dataset {id}.
List items of dataset {id} matching {filters}.
GET /v1/private/datasets/{id}/items/experiments/items/output/columns List output columns of dataset items · Get dataset items output columns #
Ask an LLM
“Which output columns do the items in a dataset have?”
“Can I see the output columns for specific experiments?”
Tell an agent
List output columns for dataset {id}.
Show output columns of dataset {id} for experiments {experiment_ids}.
PUT /v1/private/datasets/export-jobs/{jobId}/mark-viewed Mark a dataset export job as viewed · Mark dataset export job as viewed #
Ask an LLM
“How do I mark a failed dataset export as seen?”
“Can I record that I've looked at an export job?”
Tell an agent
Mark dataset export job {jobId} as viewed.
Set the viewed_at timestamp on export job {jobId}.
POST /v1/private/datasets/{id}/export Start a dataset CSV export · Start dataset CSV export #
Ask an LLM
“How do I export a dataset as CSV?”
“Is dataset export synchronous or do I need to poll it?”
Tell an agent
Start a CSV export of dataset {id}.
Export dataset {id} as CSV and return the job details.
POST /v1/private/datasets/items/stream Stream a dataset's items · Stream dataset items #
Ask an LLM
“Can I stream dataset items page by page?”
“How do I fetch items from a dataset version incrementally?”
Tell an agent
Stream items from dataset {dataset_name}.
Stream {dataset_name} items, starting after {last_retrieved_id}.
GET /v1/private/datasets/{id}/versions/diff Compare draft with latest version · Compare latest version with draft #
Ask an LLM
“What changed between my draft and the latest committed version?”
“Can I see additions, modifications and deletions since the last commit?”
Tell an agent
Compare the latest version of dataset {id} with my draft.
Show me what's new in dataset {id} since the last commit.
POST /v1/private/datasets/{id}/versions/hash/{versionHash}/tags Tag a dataset version · Create version tag #
Ask an LLM
“How do I tag a specific dataset version?”
“Can I label a dataset version as baseline or v1.0?”
Tell an agent
Tag version {versionHash} of dataset {id} with {tag}.
Label dataset {id} version {versionHash} as {tag}.
DELETE /v1/private/datasets/{id}/versions/{versionHash}/tags/{tag} Remove a tag from a dataset version · Delete version tag #
Ask an LLM
“Can I remove a tag from a dataset version?”
“Does deleting a tag also delete the version?”
Tell an agent destructive · confirm first
Remove tag {tag} from version {versionHash} of dataset {id}.
Untag dataset {id} version {versionHash}, keeping tag {tag}.
GET /v1/private/datasets/{id}/versions List a dataset's versions · List dataset versions #
Ask an LLM
“What versions exist for a dataset?”
“Can I page through a dataset's versions?”
Tell an agent
List versions of dataset {id}.
Show the {size} most recent versions of dataset {id}.
POST /v1/private/datasets/{id}/versions/restore Restore a dataset to a previous version · Restore dataset to a previous version #
Ask an LLM
“How do I roll a dataset back to an earlier version?”
“Can I restore a dataset from a version by its hash?”
Tell an agent
Restore dataset {id} to version {version_ref}.
Roll dataset {id} back to the state of version {version_ref}.
POST /v1/private/datasets/{id}/versions/retrieve Get a dataset version by name · Retrieve dataset version by name #
Ask an LLM
“Can I fetch a dataset version by its name like v1?”
“Which items are in a dataset version named v373?”
Tell an agent
Get dataset {id} version {version_name}.
Fetch the items in version {version_name} of dataset {id}.
PATCH /v1/private/datasets/{id}/versions/hash/{versionHash} Update a dataset version · Update dataset version #
Ask an LLM
“Can I add tags or a change description to a dataset version?”
“How do I document changes to a dataset version?”
Tell an agent
Add {tags_to_add} to dataset version {versionHash} of {id}.
Set the change description of dataset version {versionHash} in {id} to {change_description}.

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/comet:comet-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

comet-datasets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Opik REST Datasets API
  description: The Opik REST API is currently in beta and subject to change.
  contact:
    name: Github Repository
    url: https://github.com/comet-ml/opik
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.0.0
servers:
- url: http://localhost:5173/api
  description: Local server
- url: https://www.comet.com/opik/api
  description: Opik Cloud
tags:


# --- truncated at 32 KB (78 KB total) ---
# Full source: https://artifacts.apis.io/comet/openapi/comet-datasets-api-openapi.yml