> ## 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 the set [`DBConfig`](../types#dbconfig).

```python theme={null}
def list_indexes(self)
```

### Returns

`List[str]`: A list of index names.

### Exceptions

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

### Example Usage

```python theme={null}
import cyborgdb_core as cyborgdb

index_location = cyborgdb.DBConfig(location='redis', connection_string="redis://localhost")
config_location = cyborgdb.DBConfig(location='redis', connection_string="redis://localhost")

items_location = cyborgdb.DBConfig(location='redis', connection_string="redis://localhost")

client = cyborgdb.Client(
    api_key=api_key,
    index_location=index_location,
    config_location=config_location,
    items_location=items_location
)

print(client.list_indexes())
# Example output:
# ["index_one", "index_two", "index_three"]
```
