# pip install --upgrade pinecone
import os
from pinecone import Pinecone
pc = Pinecone(api_key=os.environ["PINECONE_API_KEY"])
for operation in pc.assistants.list_operations(assistant_name="example-assistant"):
print(operation.operation_id, operation.operation_type, operation.status)
// npm install @pinecone-database/pinecone
import { Pinecone } from '@pinecone-database/pinecone';
// Reads PINECONE_API_KEY from the environment
const pc = new Pinecone();
const assistant = pc.assistant({ name: 'example-assistant' });
const { operations } = await assistant.listOperations();
console.log(operations);
PINECONE_API_KEY="YOUR_API_KEY"
ASSISTANT_NAME="example-assistant"
# List all operations
curl -X GET "https://prod-1-data.ke.pinecone.io/assistant/operations/$ASSISTANT_NAME" \
-H "Api-Key: $PINECONE_API_KEY" \
-H "X-Pinecone-Api-Version: 2026-07"
# Filter by status
# curl -X GET "https://prod-1-data.ke.pinecone.io/assistant/operations/$ASSISTANT_NAME?status=Processing" \
# -H "Api-Key: $PINECONE_API_KEY" \
# -H "X-Pinecone-Api-Version: 2026-07"
{
"operations": [
{
"created_on": "2025-10-01T12:30:00.000Z",
"file_id": "my-report-2025",
"id": "op-1234-abcd-5678",
"operation_type": "upload_file",
"percent_complete": 42,
"status": "Processing"
},
{
"completed_on": "2025-10-01T12:05:00.000Z",
"created_on": "2025-10-01T12:00:00.000Z",
"file_id": "quarterly-analysis",
"id": "op-8765-dcba-4321",
"operation_type": "upload_file",
"percent_complete": 100,
"status": "Completed"
},
{
"completed_on": "2025-10-01T11:32:00.000Z",
"created_on": "2025-10-01T11:30:00.000Z",
"error_message": "File processing failed: unsupported file format.",
"file_id": "invalid-file",
"id": "op-5555-eeee-9999",
"operation_type": "upload_file",
"percent_complete": 15,
"status": "Failed"
},
{
"completed_on": "2025-10-01T11:02:00.000Z",
"created_on": "2025-10-01T11:00:00.000Z",
"file_id": "old-report",
"id": "op-7777-ffff-0000",
"operation_type": "delete_file",
"percent_complete": 100,
"status": "Completed"
}
],
"pagination": {
"next": "dXNlcl9pZD11c2VyXzE="
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid API key."
},
"status": 401
}{
"error": {
"code": "NOT_FOUND",
"message": "Assistant \"example-assistant\" not found."
},
"status": 404
}{
"error": {
"code": "UNKNOWN",
"message": "Internal server error"
},
"status": 500
}Operations
List operations
List all operations for an assistant. Returns operations that are in progress, as well as recently completed or failed operations.
Both successful and failed operations are retained for 30 days after completion.
Use the operation_type and status query parameters to filter results.
GET
/
operations
/
{assistant_name}
# pip install --upgrade pinecone
import os
from pinecone import Pinecone
pc = Pinecone(api_key=os.environ["PINECONE_API_KEY"])
for operation in pc.assistants.list_operations(assistant_name="example-assistant"):
print(operation.operation_id, operation.operation_type, operation.status)
// npm install @pinecone-database/pinecone
import { Pinecone } from '@pinecone-database/pinecone';
// Reads PINECONE_API_KEY from the environment
const pc = new Pinecone();
const assistant = pc.assistant({ name: 'example-assistant' });
const { operations } = await assistant.listOperations();
console.log(operations);
PINECONE_API_KEY="YOUR_API_KEY"
ASSISTANT_NAME="example-assistant"
# List all operations
curl -X GET "https://prod-1-data.ke.pinecone.io/assistant/operations/$ASSISTANT_NAME" \
-H "Api-Key: $PINECONE_API_KEY" \
-H "X-Pinecone-Api-Version: 2026-07"
# Filter by status
# curl -X GET "https://prod-1-data.ke.pinecone.io/assistant/operations/$ASSISTANT_NAME?status=Processing" \
# -H "Api-Key: $PINECONE_API_KEY" \
# -H "X-Pinecone-Api-Version: 2026-07"
{
"operations": [
{
"created_on": "2025-10-01T12:30:00.000Z",
"file_id": "my-report-2025",
"id": "op-1234-abcd-5678",
"operation_type": "upload_file",
"percent_complete": 42,
"status": "Processing"
},
{
"completed_on": "2025-10-01T12:05:00.000Z",
"created_on": "2025-10-01T12:00:00.000Z",
"file_id": "quarterly-analysis",
"id": "op-8765-dcba-4321",
"operation_type": "upload_file",
"percent_complete": 100,
"status": "Completed"
},
{
"completed_on": "2025-10-01T11:32:00.000Z",
"created_on": "2025-10-01T11:30:00.000Z",
"error_message": "File processing failed: unsupported file format.",
"file_id": "invalid-file",
"id": "op-5555-eeee-9999",
"operation_type": "upload_file",
"percent_complete": 15,
"status": "Failed"
},
{
"completed_on": "2025-10-01T11:02:00.000Z",
"created_on": "2025-10-01T11:00:00.000Z",
"file_id": "old-report",
"id": "op-7777-ffff-0000",
"operation_type": "delete_file",
"percent_complete": 100,
"status": "Completed"
}
],
"pagination": {
"next": "dXNlcl9pZD11c2VyXzE="
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid API key."
},
"status": 401
}{
"error": {
"code": "NOT_FOUND",
"message": "Assistant \"example-assistant\" not found."
},
"status": 404
}{
"error": {
"code": "UNKNOWN",
"message": "Internal server error"
},
"status": 500
}# pip install --upgrade pinecone
import os
from pinecone import Pinecone
pc = Pinecone(api_key=os.environ["PINECONE_API_KEY"])
for operation in pc.assistants.list_operations(assistant_name="example-assistant"):
print(operation.operation_id, operation.operation_type, operation.status)
// npm install @pinecone-database/pinecone
import { Pinecone } from '@pinecone-database/pinecone';
// Reads PINECONE_API_KEY from the environment
const pc = new Pinecone();
const assistant = pc.assistant({ name: 'example-assistant' });
const { operations } = await assistant.listOperations();
console.log(operations);
PINECONE_API_KEY="YOUR_API_KEY"
ASSISTANT_NAME="example-assistant"
# List all operations
curl -X GET "https://prod-1-data.ke.pinecone.io/assistant/operations/$ASSISTANT_NAME" \
-H "Api-Key: $PINECONE_API_KEY" \
-H "X-Pinecone-Api-Version: 2026-07"
# Filter by status
# curl -X GET "https://prod-1-data.ke.pinecone.io/assistant/operations/$ASSISTANT_NAME?status=Processing" \
# -H "Api-Key: $PINECONE_API_KEY" \
# -H "X-Pinecone-Api-Version: 2026-07"
Query Parameters
Was this page helpful?