---
title: "Get index health signals"
method: GET
path: "/instances/{id}/index-health"
tags: ["Query Insights"]
---

# Get index health signals

`GET /instances/{id}/index-health`

## Request

- Base URL: `https://api.cloudpepper.io`
- URL: `https://api.cloudpepper.io/instances/{id}/index-health`
- Auth: HTTP bearer

Returns read-only index-health signals for the instance database from PostgreSQL catalogs: tables with heavy sequential scans, unused indexes, duplicate indexes, and Odoo many2one fields lacking a leading btree index. Signals are raw and intentionally conservative (unique/primary indexes are excluded from unused-index signals); interpretation is left to the caller. Returns HTTP 409 with a `reason` if the database is not reachable for inspection.

**Key Parameters:**
- `id`: The instance whose database to inspect

## Response `200`

Index health signals retrieved successfully

- object

## Other responses

- `404`: Instance not found
- `409`: Query insights not enabled or database not reachable (see body `reason`)

---

[API](https://skmtc.dev/cloudpepper/apis/cloudpepper-api-docs.md) · [All operations](https://skmtc.dev/cloudpepper/apis/cloudpepper-api-docs/llms.txt) · [OpenAPI document](https://skmtc.dev/cloudpepper/apis/cloudpepper-api-docs/revisions/b6a59274cedc?raw)
