Skip to main content
POST
Create Dataset

Authorizations

X-API-Key
string
header
required

Organization API key

Headers

Idempotency-Key
string

Optional. Without a key, repeated submissions are treated as separate actions. A blank or over-long key is rejected. Reuse this key when retrying a submission; the SDK generates one per call and reuses it across automatic retries.

Required string length: 1 - 256

Body

application/json
name
string
required

Dataset name; datasets that share a name are versions of it. Only letters, digits, spaces, hyphens, underscores, and periods.

Required string length: 1 - 256
Pattern: ^[A-Za-z0-9 ._-]+$
agent_id
string | null

The dataset's agent ID. Provide agent_id or agent_name.

Maximum string length: 64
Pattern: ^agt_[a-z0-9]+$
agent_name
string | null

The dataset's agent name. Provide agent_id or agent_name.

Required string length: 1 - 256

Response

Successful Response

dataset_id
string
required

Identifier of this dataset version.

agent_id
string | null
required

The agent that owns the dataset; null for datasets created before agents owned them.

name
string
required

Dataset name shared by its versions.

status
enum<string>
required

draft state allows trajectories to be added; finalized can be used for training.

Available options:
draft,
finalized
created_at
string<date-time>
required

Time the draft was created.

finalized_at
string<date-time> | null
required

Time the version was finalized; the newest finalized version is the name's latest.

train_count
integer
required

Number of train trajectories.

Required range: x >= 0
heldout_count
integer
required

Number of heldout trajectories.

Required range: x >= 0
lineage
Lineage · object[]
required

Each finished add or copy: its runs or source dataset, filter and count added.