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
  }
}
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
header
required

An API Key is required to call Pinecone APIs. Get yours at https://app.pinecone.io/.

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
A successful response.

The response for the List operation.

vectors
object[]
Example:
[
  { "id": "document1#abb" },
  { "id": "document1#abc" }
]
pagination
object
namespace
string

The namespace of the vectors.

Example:

"example-namespace"