younifyd
Menu

List documents

List documents

POST/namespaces/{namespace}/documents/list

Use it in a workflow

  1. Add a step and choose the Pinecone connector.
  2. Pick the List documents action (under Data).
  3. Fill in the fields below, then reference the result from later steps as {{listDocuments.response.data}}.

Request

Path parameters

namespacestringrequired

The namespace to list documents from.

Request body

Enter the body as JSON in the step's Body field.

prefixstring

A prefix to filter document IDs. Only documents whose IDs begin with this prefix are returned.

limitinteger (int32)

The maximum number of documents to return per page. Defaults to 100.

Default 100

pagination_tokenstring

A pagination token from a previous list response, used to retrieve the next page of results.

json
{
  "prefix": "string",
  "limit": 100,
  "pagination_token": "string"
}

Response

Returns 200 with an object. Read it in later steps with {{listDocuments.response.data.<field>}}.

documentsarray<object>

The listed documents, in sorted order by ID.

_idstringrequired

The unique identifier of the document.

paginationobject
nextstringrequired
namespacestring

The namespace the documents were listed from: the request's namespace, or the alias's target namespace when the request named a namespace alias.

usageobject

Usage information for the `list_documents` operation.

read_unitsinteger (int32)required

The number of read units consumed by this operation.

egress_bytesinteger (int64)

The billed egress for this response, in bytes. Measured on the encoded response payload.

json
{
  "documents": [
    {
      "_id": "doc-1"
    }
  ],
  "namespace": "my-namespace",
  "usage": {
    "egress_bytes": 1024,
    "read_units": 1
  },
  "pagination": {
    "next": "Tm90aGluZyB0byBzZWUgaGVyZQo="
  }
}

Need more? See the Pinecone guide for connection setup and behaviour shared by every action.

Was this page helpful?