Endpoints
Dataset CRUD
A dataset is a table you can keep working on: read it, change its columns, add, import, edit, and delete rows, and export the grid. Nothing here runs the enrichment; fill the cells with POST /enrich and the dataset_id.
Changing a column's prompt, schema, or pinned tool marks its filled cells stale. A cell you set by hand is manual, and fills skip it unless force. While a run is on the dataset, changes to its columns and deleting it are refused with 409 dataset_in_use.
- GET
/datasetsList datasetsThe account's datasets, most recently updated first (up to 200). - GET
/datasets/{id}Read datasetOne dataset: input_columns, index_column, the bound enrichment_id and its output_columns (names; prompts and schemas are on GET /enrichments/{id}), row_count,… - PATCH
/datasets/{id}Update datasetEdit a dataset's structure: name, index_column, input_columns (add, rename, delete), output columns (add, change the prompt or schema, pin or unpin a tool, ren… - DELETE
/datasets/{id}Delete datasetDelete a dataset and its rows. - GET
/datasets/{id}/rowsList rowsThe dataset's rows in position order, each with its input values, its cells by output column name (value, state, sources), and the credits spent on it. - POST
/datasets/{id}/rowsAdd rowsAppend up to 100 rows, each an object keyed by input column name (missing columns are empty). - DELETE
/datasets/{id}/rowsDelete rowsRemove up to 100 rows by id (ids, comma-separated row_...) and / or by position (positions, comma-separated integers from 1). - POST
/datasets/{id}/rows/importImport rows (CSV)Append rows from a CSV whose header row holds column names. - GET
/toolsList agent toolsThe tools an enrichment may name in only_tools / additional_tools, or pin to an output column (tool): what each does, what a call takes (inputs; input_groups w… - PATCH
/datasets/{id}/rows/{row_id}Set input valuesSet a row's input values and / or cells by hand. - POST
/datasets/{id}/columns/promoteConvert output column to inputTurn an output column into an input column of the same name. - GET
/datasets/{id}/exportExport dataset (CSV, Excel, or JSON Lines)The whole grid: input columns, then the enrichment's output columns, one row per dataset row, in position order. - GET
/datasets/{id}/summarySummarize columnsPer-column counts over every row of the dataset, without the rows: for an output column, its cells by state (pending, stale, failed, not_found, ok, manual; a f…