Skip to content

List Runs

GET
/v1/datasets/{dataset_id}/runs
curl --request GET \
--url https://example.com/v1/datasets/example/runs \
--header 'Authorization: Bearer <token>'

The dataset’s runs, newest first.

dataset_id
required
Dataset Id
string

Successful Response

Media typeapplication/json
Response Listruns
Array<object>
Run
object
id
required
Id
string
dataset_id
required
Dataset Id

The dataset it adds answers to.

string
status
required
Status
string
Allowed values: queued running stopping stopped done failed
config
required
RunRequest

The query and tasks it was started with.

object
sql
Sql

Which rows to ask about: a SELECT over data returning __row_id; all rows by default. For a sample that grows without changing, order by a hash: SELECT * FROM data ORDER BY md5('s1' || __row_id) LIMIT 50.

string
default: SELECT * FROM data
tasks
required
Tasks
Array<object>
Task
object
id
required
Id
string
template
required
Template

The prompt, e.g. “Is this review negative? {{review}}”.

string
""
type
required
Type
string
default: yes_no
Allowed values: yes_no pick_one pick_any scale extract write
preset
required
Any of:
string
Allowed values: summarize translate
column
required
Column

Base name of the result columns. Defaults to one for the type.

string
default: answer
extraction_mode
required
Extraction Mode

Extraction editor: one scalar value or named, typed fields.

string
default: structure
Allowed values: single structure
options
required
Options

The choices for pick one and pick any; the levels, lowest first, for scale.

Array<object>
default:
Option
object
name
required
Name
string
description
Description
string
""
fields
required
Fields

For extract: what to pull out. "amount:number" is short for {"name": "amount", "type": "number"}.

Array<object>
default:
ExtractField
object
name
required
Name
string
type
required
Type
string
default: text
Allowed values: text number boolean date list items
description
required
Description

What to put in it, if the name doesn’t say.

string
""
fields
required
Array<object> recursive
reason
required
Reason

Also write why, from LLMs, for classify and extract.

boolean
models
required
Models

Decision models or LLMs; see GET /v1/models. Defaults to one for the type.

Array<string>
default: typesafe/jev-1.14
models
Models

The models it asks, by id, as when it started: their kinds and prices, and for the organisation’s own, their provider, upstream name and note.

object
key
additional properties
Model
object
id
required
Id
string
name
required
Name
string
kind
required
Kind
string
Allowed values: decision llm
tags
required
Tags

recommended for the ones to try first; others (budget, accurate) to filter by.

Array<string>
listed
required
Listed

On rowlab’s own list, offered first. The rest of OpenRouter’s catalog can be asked too.

boolean
prompt_price
required
Any of:
number
completion_price
required
Any of:
number
context_length
required
Context Length
integer
provider_id
Any of:
string
upstream
Upstream

What its provider calls it, for the organisation’s own.

string
""
note
Note

What answers, e.g. a checkpoint’s revision or training run.

string
""
columns
required
Columns

The answer columns it writes, without their _proba and _reason columns.

Array<string>
costs
required
Costs

Per task and model, so far.

Array<object>
TaskModelCost
object
task_id
required
Task Id
string
model
required
Model
string
cost
required
Cost

USD spent by this run; cached answers are free.

number
input_tokens
Input Tokens

Prompt tokens billed, as the provider counts them.

integer
0
output_tokens
Output Tokens

Answer tokens billed.

integer
0
failed
required
Failed

Answers that failed; resuming the run asks them again.

integer
row_count
required
Row Count

Rows it asks about: those the query picks that miss one of its answers.

integer
done
required
Done

Answers asked so far, failed ones too.

integer
reused
Reused

Of those done, replies kept from earlier runs: free, and not asked again.

integer
0
total
required
Total

Answers it asks for.

integer
cost
required
Cost

USD spent so far; cached answers are free.

number
error
required
Any of:
string
created_by
required
Any of:
string
resumes
Any of:
string
provider_id
required
Any of:
string
created_at
required
Created At
string format: date-time
updated_at
required
Any of:
string format: date-time

Example

[
{
"status": "queued",
"config": {
"sql": "SELECT * FROM data",
"tasks": [
{
"template": "",
"type": "yes_no",
"preset": "summarize",
"column": "answer",
"extraction_mode": "single",
"options": [],
"fields": [],
"reason": false,
"models": [
"typesafe/jev-1.14"
]
}
]
},
"models": {},
"costs": [
{
"input_tokens": 0,
"output_tokens": 0
}
],
"reused": 0
}
]

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}