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

Retrieve a list of all available encrypted indexes.

## Parameters

None

## Authentication

Required - **admin (root) API key** via `X-API-Key` header. Per-user (`cdbk_`) keys are rejected with `403`:

```http theme={null}
X-API-Key: cyborg_your_api_key_here
```

When RBAC is not enabled (`CYBORGDB_SERVICE_ROOT_KEY` unset), no header is required.

## Response

```json theme={null}
{
  "indexes": ["my_index", "another_index", "demo_index"]
}
```

| Field | Type | Description |
| - | - | - |
| `indexes` | `array[string]` | List of available index names |

## Exceptions

<AccordionGroup>
  <Accordion title="401 Unauthorized">
    Authentication failed (invalid API key)
  </Accordion>

  <Accordion title="403 Forbidden">
    Authenticated with a per-user (`cdbk_`) key — listing indexes requires the admin (root) API key
  </Accordion>

  <Accordion title="500 Internal Server Error">
    Internal server error
  </Accordion>
</AccordionGroup>

## Example Usage

```bash theme={null}
curl -X GET "http://localhost:8000/v1/indexes/list" \
     -H "X-API-Key: cyborg_your_api_key_here"

# Or with HTTPS
curl -X GET "https://your-domain.com:8000/v1/indexes/list" \
     -H "X-API-Key: cyborg_your_api_key_here"
```

## Use Cases

* **Index discovery**: Find all available indexes in your deployment
* **Administrative tasks**: List indexes for management operations
* **Application initialization**: Verify required indexes exist
* **Monitoring**: Track index inventory across environments


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