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