POST
/
api
/
chunk_group
/
chunks
curl --request POST \
  --url https://api.trieve.ai/api/chunk_group/chunks \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TR-Dataset: <tr-dataset>' \
  --data '{
  "chunk_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "chunk_tracking_ids": [
    "<string>"
  ]
}'
[
  {
    "chunk_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "slim_groups": [
      {
        "created_at": "2021-01-01 00:00:00.000",
        "dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
        "description": "A group of chunks",
        "file_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
        "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
        "name": "Trieve",
        "tracking_id": "3",
        "updated_at": "2021-01-01 00:00:00.000"
      }
    ]
  }
]

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 the groups that a chunk is in
chunk_ids
string[] | null
chunk_tracking_ids
string[] | null

Response

200
application/json
JSON body representing the groups that the chunk is in
chunk_uuid
string
required
slim_groups
object[]
required