Skip to main content
POST
/
datasets
/
{dataset_id}
/
entries
/
query
cURL
curl --request POST \
  --url https://api.opper.ai/v2/datasets/{dataset_id}/entries/query \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "input": "<string>",
    "output": "<string>",
    "expected": "This `was` the output to the dataset entry",
    "comment": "This is an example of how one can edit the output"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataset_id
string<uuid>
required

The id of the dataset

Query Parameters

query
string
required

The query to search for

limit
integer
default:5

The limit of the entries to get

Required range: 1 <= x <= 20

Response

Successful Response

id
string<uuid>
required

The id of the dataset entry

input
string
required

The input to the dataset entry

Example:

"Given this input, what is the output?"

output
string
required

The output to the dataset entry

Example:

"This is the output to the dataset entry"

expected
string | null

The expected output to the dataset entry, this is an optionally edited version of the output

Example:

"Thiswasthe output to the dataset entry"

comment
string | null

The comment to the dataset entry

Example:

"This is an example of how one can edit the output"