curl --request POST \
--url https://api.trieve.ai/api/analytics/top \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TR-Organization: <tr-organization>' \
--data '{
"date_range": {
"gt": "2021-01-01 00:00:00.000",
"gte": "2021-01-01 00:00:00.000",
"lt": "2021-01-01 00:00:00.000",
"lte": "2021-01-01 00:00:00.000"
},
"type": "search"
}'
[
{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataset_tracking_id": "<string>",
"total_queries": 123
}
]
This route allows you to view the top datasets for a given type.
curl --request POST \
--url https://api.trieve.ai/api/analytics/top \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TR-Organization: <tr-organization>' \
--data '{
"date_range": {
"gt": "2021-01-01 00:00:00.000",
"gte": "2021-01-01 00:00:00.000",
"lt": "2021-01-01 00:00:00.000",
"lte": "2021-01-01 00:00:00.000"
},
"type": "search"
}'
[
{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataset_tracking_id": "<string>",
"total_queries": 123
}
]
The organization id to use for the request
JSON request payload to filter the top datasets
The body is of type object
.
The top datasets for the request
The response is of type object[]
.
Was this page helpful?