# List AI Search indexes

Launch stage: Public Preview

`GET /api/2.0/ai-search/{parent=workspaces/*/endpoints/*}/indexes`

List AI Search indexes on an endpoint.

API scopes: ai-search

## Path parameters

- `parent` (string, required)
  The Endpoint that owns this collection of indexes.
   Format: `workspaces/{workspace_id}/endpoints/{endpoint_id}`

## Query parameters

- `page_size` (int32, optional)
  Best-effort upper bound on the number of results to return. Honored as an upper
   bound by the shim: `page_size` only narrows the legacy backend's response, never
   widens it, so the practical cap is `min(page_size, legacy_fixed_page_size)`.
- `page_token` (string, optional)
  Page token from a previous response. If not provided, returns the first page.

## Returns

Returns a list of Index objects.

## Response

```json
{
  "indexes": [
    {
      "name": "main.default.docs_index",
      "endpoint": "docs-endpoint",
      "primary_key": "string",
      "index_type": "string",
      "direct_access_index_spec": {},
      "delta_sync_index_spec": {},
      "status": {},
      "creator": "john@example.com",
      "index_subtype": "string"
    }
  ],
  "next_page_token": "string"
}
```

