Skip to main content
Pinecone Docs

Search documentation

Type to search this documentation.

On this pageOverview

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}.

Python
# 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)
curl
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

  • X-Pinecone-Api-Version (header, string, required) — Required date-based version header
  • 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.
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu