> ## 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 Encrypted Indexes

To see which existing encrypted indexes are available to your CyborgDB client, you can use `list_indexes`:

<CodeGroup>
  ```python Python SDK icon="python" theme={null}
  from cyborgdb import Client

  # Create a client
  client = Client('http://localhost:8000', 'your-api-key')

  # List all available indexes
  indexes = client.list_indexes()

  print(indexes)
  # Example output:
  # ["index_one", "index_two", "index_three"]
  ```

  ```javascript JavaScript SDK icon="js" theme={null}
  import { Client } from 'cyborgdb';

  // Create a client
  const client = new Client('http://localhost:8000', 'your-api-key');

  // List all available indexes
  const indexes = await client.listIndexes();

  console.log(indexes);
  // Example output:
  // ["index_one", "index_two", "index_three"]
  ```

  ```typescript TypeScript SDK icon="code" theme={null}
  import { Client } from 'cyborgdb';

  // Create a client
  const client = new Client('http://localhost:8000', 'your-api-key');

  // List all available indexes
  const indexes: string[] = await client.listIndexes();

  console.log(indexes);
  // Example output:
  // ["index_one", "index_two", "index_three"]
  ```

  ```bash cURL icon="rectangle-terminal" theme={null}
  curl -X GET "http://localhost:8000/v1/indexes/list" \
       -H "X-API-Key: your-api-key"
  ```
</CodeGroup>

This returns an array of index names that are available to your API key.

## API Reference

For more information on listing encrypted indexes, refer to the API reference:

<CardGroup cols={3}>
  <Card title="REST API Reference" href="../../rest-api/client/list-indexes" icon="rectangle-terminal">
    REST API reference for `/v1/indexes/list`
  </Card>

  <Card title="Python SDK Reference" href="../../python-sdk/client/list-indexes" icon="python">
    API reference for `list_indexes()` in Python
  </Card>

  <Card title="JS/TS SDK Reference" href="../../js-ts-sdk/client/list-indexes" icon="js">
    API reference for `list_indexes()` in JavaScript/TypeScript
  </Card>
</CardGroup>
