---
title: "Query Dataset Entries"
method: POST
path: "/datasets/{dataset_id}/entries/query"
tags: ["datasets"]
---

# Query Dataset Entries

`POST /datasets/{dataset_id}/entries/query`

## Path parameters

- `dataset_id` string, uuid, required — The id of the dataset

## Query parameters

- `query` string, required — The query to search for
- `limit` integer — The limit of the entries to get

## Response `200`

Successful Response

- QueryDatasetEntriesResponse[]
  - `id` string, uuid, required — The id of the dataset entry
  - `input` string, required — The input to the dataset entry
  - `output` string, required — The output to the dataset entry
  - `expected` string, nullable — The expected output to the dataset entry, this is an optionally edited version of the output
  - `comment` string, nullable — The comment to the dataset entry

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required (out of credits)
- `404` — Not Found
- `422` — Request Validation Error

---

[API](https://skmtc.dev/opper/apis/opper-api-v2.md) · [All operations](https://skmtc.dev/opper/apis/opper-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/opper/opper-api-v2/revisions/d3ccdaa15678/schema)
