> ## 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 the names of all indexes on the CyborgDB service.

```python theme={null}
client.list_indexes()
```

### Returns

`List[str]`: index names. Empty when the service has no indexes.

### Exceptions

<AccordionGroup>
  <Accordion title="cyborgdb.AuthenticationError">
    The client's `api_key` is missing or invalid (HTTP `401`), or is a per-user key: listing indexes requires the root key (HTTP `403`).
  </Accordion>

  <Accordion title="cyborgdb.ServiceError">
    The service returns `5xx`.
  </Accordion>

  <Accordion title="cyborgdb.TransportError">
    The service can't be reached.
  </Accordion>
</AccordionGroup>

See [Errors](../errors) for the full hierarchy.

### Example Usage

```python theme={null}
from cyborgdb import Client

client = Client(base_url='http://localhost:8000', api_key='your-api-key')

indexes = client.list_indexes()
print(indexes)
# Output: ['documents', 'embeddings', 'semantic-search']
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.