---
title: "List Datasources"
description: "List all datasources in a knowledge base."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/kb/list-datasources"
---
# List Datasources

> List all datasources in a knowledge base.

<block-meta block="Yes" channels="Any" folder="kb" group="Knowledge Base" groupTo="/build/workflows/blocks/kb" icon="i-lucide-files" pipe="Value" scope="Any" tool="Yes" type="kb.list-datasources">



</block-meta>

**List Datasources** (canvas label **KB List Datasources**) returns every datasource on a [knowledge base](https://docs.vettero.com/data/knowledge-bases).

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Knowledge base
      </strong>
    </td>
    
    <td>
      Store to list (required)
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after the list is loaded
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`). The value is an object:

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        dataSources
      </code>
    </td>
    
    <td>
      list
    </td>
    
    <td>
      Datasources on the store
    </td>
  </tr>
</tbody>
</table>

Each item uses the same fields as [Get Datasource](https://docs.vettero.com/build/workflows/blocks/kb/get-datasource) (`id`, `type`, `status`, `progress`, `error`, `file`, `url`, and related).

## Use case

- Show which sources are still processing before a [Query](https://docs.vettero.com/build/workflows/blocks/kb/query).
- Loop with [For Of](https://docs.vettero.com/build/workflows/blocks/loops/for-of) to refresh or delete selected sources.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
