Rerank endpoint throws 404 not found

Hi there. I’m trying to use Rerank via curl / Postman to later implement it in node without SDKs. I’m on the free plan for now.
The basic example POST https://api.pinecone.io/rerank throws a 404 Not Foundwith the example’s payload.

  • The API key is valid
  • The model bge-reranker-v2-m3 is available on the free plan.
{
  "model": "bge-reranker-v2-m3",
  "query": "The tech company Apple is known for its innovative products like the iPhone.",
  "return_documents": true,
  "top_n": 4,
  "documents": [
    {"id": "vec1", "text": "Apple is a popular fruit known for its sweetness and crisp texture."},
    {"id": "vec2", "text": "Many people enjoy eating apples as a healthy snack."},
    {"id": "vec3", "text": "Apple Inc. has revolutionized the tech industry with its sleek designs and user-friendly interfaces."},
    {"id": "vec4", "text": "An apple a day keeps the doctor away, as the saying goes."}
  ],
  "parameters": {
    "truncate": "END"
  }}

What am I missing?

hey @danielp , are you passing the ‘X-Pinecone-API-Version’ header in your request? It is a required header. The docs dont seem to mention that so we will get that corrected

Thanks @rajat. I was not,and that was the issue. It now works fine. Thanks!