GET
/
vectors
/
list
PINECONE_API_KEY="YOUR_API_KEY"
INDEX_HOST="INDEX_HOST"

curl -X GET "https://$INDEX_HOST/vectors/list?namespace=ns1&prefix=doc1#" \
  -H "Api-Key: $PINECONE_API_KEY"
{
  "vectors": [
    { "id": "doc1#chunk1" },
    { "id": "doc1#chunk2" },
    { "id": "doc1#chunk3" },
    { "id": "doc1#chunk4" },
    ...
  ],
  "pagination": {
    "next": "c2Vjb25kY2FsbA=="
  },
  "namespace": "ns1",
  "usage": {
    "readUnits": 1
  }
}

Authorizations

Api-Key
string
headerrequired

An API Key is required to call Pinecone APIs. Get yours from the console.

Query Parameters

prefix
string

The vector IDs to fetch. Does not accept values containing spaces.

limit
integer
default: 100

Max number of IDs to return.

paginationToken
string

Pagination token to continue a previous listing operation.

namespace
string

Response

200 - application/json
vectors
object[]
pagination
object
namespace
string

The namespace of the vectors.