Skip to main content
POST
Create a dataset

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key from the API Keys page.

Body

application/json

Exactly one of prompt or spec

prompt
string

What the dataset should contain, in plain English

Required string length: 3 - 15000
Example:

"Specialty coffee shops in Oakland with their website and rating"

spec
object

A schema to use as is, such as one returned by POST /v1/datasets/plan

target_rows
integer

Rows to fill the dataset to, 1 to 250

Required range: 1 <= x <= 250
Example:

100

populate
boolean
default:true

Start filling the dataset right away

Response

Dataset created, not populating

A dataset and the state of its rows

id
string<uuid>
required
name
string
required
spec
object
required
status
enum<string>
required

empty: no rows yet; populating: a run is adding rows; ready: rows stand; failed or cancelled: how the latest run ended

Available options:
empty,
populating,
ready,
failed,
cancelled
target_rows
integer
required

Rows a populate fills to

row_count
integer
required
run
object | null
required

The latest run, however it ended; null when the dataset never ran

created_at
string<date-time>
required