Skip to main content
POST
Import a window of request traces as dataset rows

Authorizations

Authorization
string
header
required

API key with the vk_ prefix. Create one from the dashboard.

Path Parameters

dataset_id
string
required

Dataset id or name

Body

application/json
deployment
string
required
from
string<date-time> | null

Start of the trace window. Required unless thread_id is set.

to
string<date-time> | null

End of the trace window, at most 31 days after from. Required unless thread_id is set.

model_version_id
string | null
format
null | enum<string>

Row format to write; defaults to the dataset's locked format. v1 accepts chat and prompt only.

Available options:
prompt,
preference,
completion,
chat,
eval
limit
integer<int32> | null
Required range: x >= 0
snapshot
boolean
force
boolean
scores
null | object

Keep only traces with an ok score from evaluator matching passed / min / max (e.g. the judge's failures). Window imports only.

thread_id
string | null

Import one thread of deployment as one row, built from its newest stored trace (whose messages hold the whole conversation). from/to/limit/force/model_version_id do not apply.

Response

object
string
required
id
string
required
dataset_id
string
required
deployment_id
string
required
from
string<date-time>
required
to
string<date-time>
required
format
enum<string>
required

The locked row format of a stream. Detected from the first row and enforced on every later append (a mismatched row 400s the whole batch).

Available options:
prompt,
preference,
completion,
chat,
eval
traces_scanned
integer<int32>
required
rows_appended
integer<int32>
required
skipped
any
required

Per-reason counts of traces that were fetched but not written, e.g. {"no_choices": 3, "filtered_version": 28}.

head_row
integer<int64>
required
first_row
integer<int64> | null
last_row
integer<int64> | null
snapshot_id
string | null