curl --request GET \
--url https://api.trieve.ai/api/dataset/files/{dataset_id}/{page} \
--header 'Authorization: <api-key>' \
--header 'TR-Dataset: <tr-dataset>'{
"file_and_group_ids": [
{
"file": {
"created_at": "2021-01-01 00:00:00.000",
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"file_name": "file.txt",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"link": "https://trieve.ai",
"metadata": {
"key": "value"
},
"size": 1000,
"tag_set": "tag1,tag2",
"time_stamp": "2021-01-01 00:00:00.000",
"updated_at": "2021-01-01 00:00:00.000"
},
"group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"total_pages": 123
}Get all files and their group ids which belong to a given dataset specified by the dataset_id parameter. 10 files and group ids are returned per page. This route may return the same file multiple times if the file is associated with multiple groups.
curl --request GET \
--url https://api.trieve.ai/api/dataset/files/{dataset_id}/{page} \
--header 'Authorization: <api-key>' \
--header 'TR-Dataset: <tr-dataset>'{
"file_and_group_ids": [
{
"file": {
"created_at": "2021-01-01 00:00:00.000",
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"file_name": "file.txt",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"link": "https://trieve.ai",
"metadata": {
"key": "value"
},
"size": 1000,
"tag_set": "tag1,tag2",
"time_stamp": "2021-01-01 00:00:00.000",
"updated_at": "2021-01-01 00:00:00.000"
},
"group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"total_pages": 123
}The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.
The id of the dataset to fetch files for.
The page number of files you wish to fetch. Each page contains at most 10 files.
x >= 0JSON body representing the files and their group ids in the current dataset
Show child attributes
Show child attributes
{
"created_at": "2021-01-01 00:00:00.000",
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"file_name": "file.txt",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"link": "https://trieve.ai",
"metadata": { "key": "value" },
"size": 1000,
"tag_set": "tag1,tag2",
"time_stamp": "2021-01-01 00:00:00.000",
"updated_at": "2021-01-01 00:00:00.000"
}
Was this page helpful?