Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
project_id
string<uuid>
required

Project ID that will own the dataset. Must match a project you created.

name
string
required

Human-readable name shown in the dashboard once the dataset is created.

Minimum string length: 1
file
file
required

Required JSONL upload. Each line should be a JSON object containing a "messages" array (system/user/assistant) used to seed the dataset.

Response

Dataset created successfully

dataset_id
string<uuid>
required