Fetch api call to list in ui

I am trying to fetch my records so i can display them in my UI,

my current fetch request is a get and structured like this

GET https://testindex-9o3tl63-aped-4627-b74a.svc.pinecone.io/vectors/fetch?ids=vec_201&namespace=faq
Headers:
Api-Key: YOUR_SECRET_API_KEY

but I’m getting the 200 code so it talked to the back end but the fetch is failing. I have confirmed that the request has a valid namespace and it is the same capitalization, and the record exists too. but ti’s still failing.

Hi @0decentralizeda.i0,

Welcome to the Pinecone Forum, thanks for posting!

In your request, are you including the API version? Your fetch request should look like this:

curl -X GET "https://testindex-9o3tl63-aped-4627-b74a.svc.pinecone.io/vectors/fetch?ids=vec_201&namespace=faq" \
  -H "Api-Key: YOUR_API_KEY" \
  -H "X-Pinecone-API-Version: 2025-01"

Let me know if that helps or not!

Lauren