younifyd
Menu

List namespaces

List namespaces

GET/namespaces

Use it in a workflow

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

Request

Query parameters

limitinteger (int32)

Max number of namespaces to return per page. Defaults to 100.

Default 100

paginationTokenstring

Pagination token to continue a previous listing operation.

prefixstring

Prefix of the namespaces to list. Acts as a filter to return only namespaces that start with this prefix. Must be ASCII and must not contain the NUL character, matching the namespace names it filters. An empty prefix matches every namespace.

Response

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

namespacesarray<object>

The list of namespaces belonging to this index.

namestring

The name of the namespace.

record_countstring (uint64)

The total number of records in the namespace. A 64-bit integer, serialized as a decimal string.

schemaobject1 fields

Schema for the behavior of Pinecone's internal metadata index. By default, all metadata is indexed; when `schema` is present, only fields which are present in the `fields` object with a `filterable: true` are indexed. Note that `filterable: false` is not currently supported.

indexed_fieldsobject1 fields

A list of all indexed metatadata fields in the namespace

size_bytesstring (uint64)

The total size of the namespace's data, in bytes, as a 64-bit integer serialized as a decimal string. Approximate: data written before size tracking reads as 0, and recently deleted data may still be counted; compaction converges the value.

paginationobject
nextstringrequired
total_countinteger (int32)

The total number of namespaces in the index matching the prefix

json
{
  "namespaces": [
    {
      "name": "example-namespace",
      "record_count": "20000",
      "schema": {
        "fields": {
          "description": {
            "filterable": true
          },
          "genre": {
            "filterable": true
          },
          "year": {
            "filterable": true
          }
        }
      },
      "indexed_fields": {
        "fields": [
          "genre",
          "year",
          "author"
        ]
      },
      "size_bytes": "1048576"
    }
  ],
  "pagination": {
    "next": "Tm90aGluZyB0byBzZWUgaGVyZQo="
  },
  "total_count": 25
}

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