List Dataset Files
Retrieve a list of files from the dataset for a specific user context.
GET /datasets
Query Parameters
Section titled “Query Parameters”userContext[<key>] string | number Required
User context parameters used to scope and filter files. The context defines the ownership and isolation boundary for dataset files—commonly used for multi-tenant scenarios.
For example: ?userContext[userId]=123 will return only files that belong to that specific user.
Files are isolated by their user context, meaning you can only retrieve files that match the exact context parameters provided.
Request
import Inconvo from "@inconvoai/node";
const inconvo = new Inconvo({ apiKey: process.env.INCONVO_API_KEY});
const files = await inconvo.datasets.list({ userContext: { userId: 123 }});
console.log(files);{ "files": [ "sales_report_q4.csv", "customer_data.json" ]}