Read
List
Get filtered metadata based on conditions. Supports shared connections.
Request Body
| Field | Type | Description |
|---|---|---|
data_connector_name | str | Name of the data connector (vector database profile). |
dataslice_id | Optional[str] | ID of the dataslice to get files from. |
tag_names | Optional[List[str]] | List of tag names to include in the metadata. |
include_chunk_level | Optional[bool] | Whether to include chunk-level metadata. Default: true |
file_names | Optional[List[str]] | List of specific file names to include in the metadata. |
chunk_ids | Optional[List[str]] | List of specific chunk IDs to include in the metadata. |
include_last_updated | Optional[bool] | Whether to include the last updated timestamp. Default: false |
Response
- 200: Metadata retrieved successfully
- Without
chunk_ids: Returns metadata grouped by filename, tag, and level
{filename: {tag_id: {chunk_level: {chunk_id: metadata}, file_level: metadata}}} - With
chunk_ids: Returns metadata by chunk ID
{chunk_id: {metadata}}
- Without
- 500: Internal Server Error
Example
{
"data_connector_name": "my-connector",
"dataslice_id": "abc123",
"tag_names": ["category", "date"],
"include_chunk_level": true,
"file_names": ["document1.pdf", "document2.pdf"]
}
POST
Python
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
Response
Successful Response
- MetadataByTagAndChunk
- MetadataByChunk
Python
