curl --request GET \
--url https://api.trieve.ai/api/dataset/usage/{dataset_id} \
--header 'Authorization: <api-key>' \
--header 'TR-Dataset: <tr-dataset>'
{
"chunk_count": 100,
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3"
}
Auth’ed user or api key must have an admin or owner role for the specified dataset’s organization.
curl --request GET \
--url https://api.trieve.ai/api/dataset/usage/{dataset_id} \
--header 'Authorization: <api-key>' \
--header 'TR-Dataset: <tr-dataset>'
{
"chunk_count": 100,
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3"
}
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 you want to retrieve usage for.
Dataset usage retrieved successfully
The response is of type object
.
Was this page helpful?