Datasets
Upload and mutate your own data.
Credentials
sessionStorage) and are sent only to https://api.indexone.io. They are cleared when the tab closes.Team-owned tabular data (dst_...) stored as parquet in S3 and consumable from a workflow via the load_dataset operation.
List datasets
/datasetLists the datasets belonging to a team, newest first.
The datasets table is keyed on id alone with no secondary index, so it cannot be queried by team. This reads the datasets map held on the team record — the same source the console list and the MCP list_datasets tool use — which is why team_id is required rather than inferred.
Added 2026-07-21. Before that there was no collection route and callers had to read the team record themselves via GET /teams/{id}.
Query parameters
| Field | Type | Description |
|---|---|---|
team_id | string | Team to list for. Would default to the caller's primary team. |
curl -X GET "https://api.indexone.io/dataset" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN"
Try it
Team to list for. Would default to the caller's primary team.
Example response
[{"id": "dst_R4mVnQ8xL27p","name": "Custom ESG scores","team_id": "33a36e74-b36a-4a50-9a99-edeff5144a43","updated_at": "2026-07-21 08:50:42","row_count": 4812}]
Errors
| Field | Type | Description |
|---|---|---|
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
403 | object | Caller is not a member of that team. |
429 | object | API key usage-plan rate limit exceeded. |
Create a dataset
/datasetCreates an empty dataset record (dst_...) and reserves its S3 prefix, then links it into the team's datasets map. The dataset holds no data yet: upload it with POST /dataset/{dataset_id}/presigned_url followed by POST /dataset/{dataset_id}/mutation.
Once populated, the dataset is readable from a workflow through the load_dataset operation.
Request body
| Field | Type | Description |
|---|---|---|
name | string | Defaults to "Untitled Dataset". |
description | string | |
team_id | string | Owning team. |
get_presigned_url | boolean | Also return an upload slot under presigned_url in the same call, skipping POST /dataset/{dataset_id}/presigned_url. Send file_type (and optionally file_name) alongside it; file_type defaults to text/csv. |
curl -X POST "https://api.indexone.io/dataset" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN" \-H "Content-Type: application/json" \-d '{"name": "Custom ESG scores","description": "Quarterly vendor ESG scores keyed by FIGI","team_id": "33a36e74-b36a-4a50-9a99-edeff5144a43"}'
Try it
Example response
{"dataset": {"id": "dst_R4mVnQ8xL27p","name": "Custom ESG scores","description": "Quarterly vendor ESG scores keyed by FIGI","team_id": "33a36e74-b36a-4a50-9a99-edeff5144a43","created_at": "2026-07-21 08:45:10","updated_at": "2026-07-21 08:45:10","s3_url": "s3://prod-core-i1-datasets/dst_R4mVnQ8xL27p","url": "https://prod-core-i1-datasets.s3.amazonaws.com/dst_R4mVnQ8xL27p"},"team_data": {"id": "33a36e74-b36a-4a50-9a99-edeff5144a43","datasets": {"dst_R4mVnQ8xL27p": {"id": "dst_R4mVnQ8xL27p"}}}}
Errors
| Field | Type | Description |
|---|---|---|
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
403 | Error | team_id names a team you may not act on. |
429 | object | API key usage-plan rate limit exceeded. |
Get a dataset
/dataset/{dataset_id}Returns the dataset record. With parsed=true the current parquet file is read from S3 and its rows are attached as data — convenient for previews, but it loads the whole dataset into the response, so avoid it for large files.
Note there is no ownership check on this route: any authenticated caller who knows a dst_... id can read it.
Path parameters
| Field | Type | Description |
|---|---|---|
dataset_idrequired | string | Dataset id. |
Query parameters
| Field | Type | Description |
|---|---|---|
parsed | boolean | Also read and return the dataset rows as data. |
curl -X GET "https://api.indexone.io/dataset/dst_R4mVnQ8xL27p" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN"
Try it
Dataset id.
Also read and return the dataset rows as `data`.
Example response
{"id": "dst_R4mVnQ8xL27p","name": "Custom ESG scores","description": "Quarterly vendor ESG scores keyed by FIGI","team_id": "33a36e74-b36a-4a50-9a99-edeff5144a43","created_at": "2026-07-21 08:45:10","updated_at": "2026-07-21 08:50:42","s3_url": "s3://prod-core-i1-datasets/dst_R4mVnQ8xL27p","url": "https://prod-core-i1-datasets.s3.amazonaws.com/dst_R4mVnQ8xL27p"}
Errors
| Field | Type | Description |
|---|---|---|
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
403 | Error | The dataset belongs to a team you are not in. |
404 | object | No such dataset. The handler indexes the DynamoDB Item key unguarded, so an unknown id surfaces as a 500-class gateway error rather than a clean 404. |
429 | object | API key usage-plan rate limit exceeded. |
Update dataset metadata
/dataset/{dataset_id}Updates a dataset's metadata. Only name and description may be changed; everything else on the record is an identifier or derived from one (s3_url and url embed the dataset id), so changing them would orphan the stored objects.
The team record holds a full copy of each dataset, written once at creation. This endpoint rewrites that copy too, so a rename is reflected everywhere the team map is read. Data changes still go through POST /dataset/{dataset_id}/mutation.
Added 2026-07-21.
Path parameters
| Field | Type | Description |
|---|---|---|
dataset_idrequired | string | Dataset id. |
Request body
| Field | Type | Description |
|---|---|---|
name | string | |
description | string |
curl -X PATCH "https://api.indexone.io/dataset/dst_R4mVnQ8xL27p" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN" \-H "Content-Type: application/json" \-d '{"name": "Custom ESG scores (v2)","description": "Now including governance sub-scores"}'
Try it
Dataset id.
Example response
{"id": "dst_R4mVnQ8xL27p","name": "Custom ESG scores (v2)","description": "Now including governance sub-scores","updated_at": "2026-07-21 09:01:00"}
Errors
| Field | Type | Description |
|---|---|---|
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
403 | object | Caller's teams do not own this dataset. |
404 | object | No such dataset. |
429 | object | API key usage-plan rate limit exceeded. |
Delete a dataset
/dataset/{dataset_id}Deletes a dataset: its record and its entry in the team's datasets map, so nothing can load it again. Not reversible.
Added 2026-07-21. The same delete remains available as POST /dataset/{dataset_id}/mutation with {"mutation": "delete"}, which is how deletion worked before this route existed — an overload that made a destructive action look like a data append. Prefer DELETE.
Workflows referencing the dataset are not updated and will fail on their next run.
Path parameters
| Field | Type | Description |
|---|---|---|
dataset_idrequired | string | Dataset id. |
curl -X DELETE "https://api.indexone.io/dataset/dst_R4mVnQ8xL27p" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN"
Try it
Dataset id.
Example response
{"dataset": {"id": "dst_R4mVnQ8xL27p","deleted": true}}
Errors
| Field | Type | Description |
|---|---|---|
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
403 | object | Caller's teams do not own this dataset. |
404 | object | No such dataset. |
429 | object | API key usage-plan rate limit exceeded. |
Apply an upload to a dataset
/dataset/{dataset_id}/mutationStep two of the upload flow. Reads the file you uploaded and folds it into the dataset's current parquet.
- append — concatenate the new rows onto the existing data. Columns are unioned, so a schema mismatch produces nulls rather than an error.
- replace — discard the existing data and use the upload as the new dataset.
- delete — deletes the entire dataset: every S3 object under its prefix, the DynamoDB record and the team link. mutation_data_url is ignored. DELETE /dataset/{dataset_id} does exactly the same thing and says so in its name; prefer it.
mutation_data_url is the presigned URL with its query string removed (or any s3:// or https://<bucket>.s3.amazonaws.com/<key> URL). .csv, .tsv and .parquet are recognised by extension.
On success a dataset_update trigger is posted so workflows consuming this dataset can react.
Path parameters
| Field | Type | Description |
|---|---|---|
dataset_idrequired | string | Dataset id. |
Request body
| Field | Type | Description |
|---|---|---|
mutationrequired | "append" | "replace" | "delete" | |
mutation_data_url | string | URL of the uploaded file. Required for append and replace. |
curl -X POST "https://api.indexone.io/dataset/dst_R4mVnQ8xL27p/mutation" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN" \-H "Content-Type: application/json" \-d '{"mutation": "append","mutation_data_url": "https://prod-core-i1-datasets.s3.amazonaws.com/dst_R4mVnQ8xL27p/fil_7YtQ2nWx4Kp8/esg_scores_2026q2.csv"}'
Try it
Dataset id.
Example response
{"dataset": {"id": "dst_R4mVnQ8xL27p","name": "Custom ESG scores","team_id": "33a36e74-b36a-4a50-9a99-edeff5144a43","updated_at": "2026-07-21 08:50:42","url": "https://prod-core-i1-datasets.s3.amazonaws.com/dst_R4mVnQ8xL27p"},"trigger_notification": {"sent": true,"status_code": 200,"response": {"status": "accepted","trigger_id": "trg_3Kw8PnBv52Hj"}}}
Errors
| Field | Type | Description |
|---|---|---|
400 | Error | mutation type not specified, or unsupported mutation type: <value>. |
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
403 | Error | The dataset belongs to a team you are not in. |
404 | object | No such dataset. |
429 | object | API key usage-plan rate limit exceeded. |
Get an upload URL for dataset data
/dataset/{dataset_id}/presigned_urlReturns a presigned S3 PUT URL. Step one of the two-step upload: PUT your CSV or parquet bytes to the returned url with Content-Type set to exactly the file_type you requested (a mismatch makes S3 reject the signature), then call POST /dataset/{dataset_id}/mutation with the URL stripped of its query string to fold the upload into the dataset.
The upload lands at a unique per-file key, so an upload alone never overwrites the current data.
Path parameters
| Field | Type | Description |
|---|---|---|
dataset_idrequired | string | Dataset id. |
Request body
| Field | Type | Description |
|---|---|---|
file_typerequired | string | MIME type of the upload; becomes the required Content-Type of the PUT. |
file_name | string | Optional filename. Defaults to a generated fil_... name. |
curl -X POST "https://api.indexone.io/dataset/dst_R4mVnQ8xL27p/presigned_url" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN" \-H "Content-Type: application/json" \-d '{"file_type": "text/csv","file_name": "esg_scores_2026q2.csv"}'
Try it
Dataset id.
Example response
{"url": "https://prod-core-i1-datasets.s3.amazonaws.com/dst_R4mVnQ8xL27p/fil_7YtQ2nWx4Kp8/esg_scores_2026q2.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&X-Amz-Signature=abc123","key": "dst_R4mVnQ8xL27p/fil_7YtQ2nWx4Kp8/esg_scores_2026q2.csv","bucket": "prod-core-i1-datasets","dataset_id": "dst_R4mVnQ8xL27p","content_type": "text/csv"}
Errors
| Field | Type | Description |
|---|---|---|
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
403 | Error | The dataset, or the team named, is not one you may act on. |
429 | object | API key usage-plan rate limit exceeded. |