List Files
For guidance and examples, see Manage files.
# To use the Python SDK, install the plugin:
# pip install --upgrade pinecone pinecone-plugin-assistant
from pinecone import Pinecone
pc = Pinecone(api_key="YOUR_API_KEY")
# Get your assistant.
assistant = pc.assistant.Assistant(
assistant_name="example-assistant",
)
# List files in your assistant.
files = assistant.list_files()import { Pinecone } from '@pinecone-database/pinecone'
const pc = new Pinecone({ apiKey: 'YOUR_API_KEY' });
const assistantName = 'example-assistant';
const assistant = pc.Assistant(assistantName);
const files = await assistant.listFiles();
console.log(files);PINECONE_API_KEY="YOUR_API_KEY"
ASSISTANT_NAME="example-assistant"
curl -X GET "https://prod-1-data.ke.pinecone.io/assistant/files/$ASSISTANT_NAME" \
-H "Api-Key: $PINECONE_API_KEY" \
-H "X-Pinecone-Api-Version: 2025-04"GET /files/{assistant_name}
Parameters
Section titled “Parameters”assistant_name(path, string, required) — The name of the assistant to be described.filter(query, string) — Optional JSON-encoded metadata filter for files.
Responses
Section titled “Responses”200— This operation returns a list of all files that you have previously uploaded, and which are associated with the given assistant name.401— Unauthorized. Possible causes: Invalid API key.404— Assistant not found.500— Internal server error.