> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cyborg.co/llms.txt
> Use this file to discover all available pages before exploring further.

# List Indexes

Returns a list of all encrypted index names accessible via the client at its configured [`StorageConfig`](../types#storageconfig).

```cpp theme={null}
std::vector<std::string> ListIndexes();
```

### Returns

`std::vector<std::string>`: A list of index names.

### Exceptions

<AccordionGroup>
  <Accordion title="std::runtime_error">
    * Throws if the list of indexes could not be retrieved.
  </Accordion>
</AccordionGroup>

### Example Usage

```cpp theme={null}
#include "cyborgdb_core/client.hpp"

// ... Initialize the client ...

auto indexes = client.ListIndexes();

// Print the list of indexes
for (const auto& name : indexes) {
    std::cout << name << std::endl;
}
```
