List indexes
Returns all indexes in the project, including their current status and configuration. Each item in the response has the same shape as GET /indexes/{index_name}.
# pip install --upgrade pinecone
import os
from pinecone import Pinecone
pc = Pinecone(api_key=os.environ["PINECONE_API_KEY"])
for index_model in pc.indexes.list():
print(index_model.name, index_model.host, index_model.status.state)PINECONE_API_KEY="YOUR_API_KEY"
curl "https://api.pinecone.io/indexes" \
-H "Api-Key: $PINECONE_API_KEY" \
-H "X-Pinecone-Api-Version: 2026-07"GET /indexes
Parameters
Section titled “Parameters”X-Pinecone-Api-Version(header, string, required) — Required date-based version header
Responses
Section titled “Responses”200— This operation returns a list of all the indexes that you have previously created, and which are associated with the given project.401— Unauthorized. Possible causes: missing or invalid API key.500— Internal server error.