POST
/
api
/
dataset
/
get_all_tags
curl --request POST \
  --url https://api.trieve.ai/api/dataset/get_all_tags \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TR-Dataset: <tr-dataset>' \
  --data '{
  "page": 123,
  "page_size": 123
}'
{
  "tags": [
    {
      "count": 123,
      "tag": "<string>"
    }
  ],
  "total": 123
}

Authorizations

Authorization
string
header
required

Headers

TR-Dataset
string
required

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.

Body

application/json
JSON request payload to get items with the tag in the request
page
integer | null

Page number to return, 1-indexed. Default is 1.

page_size
integer | null

Number of items to return per page. Default is 20.

Response

200
application/json
Page of tags requested with all tags and the number of chunks in the dataset with that tag plus the total number of unique tags for the whole datset
tags
object[]
required

List of tags with the number of chunks in the dataset with that tag.

total
integer
required

Total number of unique tags in the dataset.