How to List Pinecone Indexes Across Multiple Projects via API?


I’m working with the Pinecone API and have encountered a limitation that I’m hoping to get some advice on.

Specifically, I’m using the endpoint to retrieve a list of my Pinecone indexes.

The issue arises when dealing with multiple projects. Pinecone allows the creation of different projects, each containing its own set of indexes. However, when I make an API call to list all indexes, it only returns the indexes within the default project. There doesn’t seem to be an option in the API to specify a project, and as a result, I’m unable to access the indexes of other projects.

Does anyone know of a way to list indexes from all projects, or a method to specify a project when calling this API endpoint?

Any guidance or workaround to address this would be greatly appreciated.

Thank you!

Hi @senols. API keys are per project, so if you want to list indexes across multiple projects you’d need to use different API keys and instantiate a Pinecone connection for each one. Connecting to multiple projects with the same connection isn’t supported.

Can I ask what you’re working on?

Hi @Cory_Pinecone

Thanks for your guidance!

I’ve been working on a WordPress plugin for a chatbot, and I’ve been using Pinecone for quite some time. I’m currently exploring the new “serverless” features and adapting to the recent API changes.

Your explanation about API keys being specific to each project and the need for separate connections for different projects is really helpful.

Thanks for your support

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.