---
title: "Database Monitoring: captured query plans for a query"
method: GET
path: "/api/{org_id}/db_monitoring/query/plans"
tags: ["Traces"]
---

# Database Monitoring: captured query plans for a query

`GET /api/{org_id}/db_monitoring/query/plans`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/db_monitoring/query/plans`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/db_monitoring/query/plans/get.ts> (a function with typed inputs; its response is checked against the schema)

Distinct GENERIC, NULL-BOUND EXPLAIN plans captured for one query fingerprint, with first and last seen. Not the plan Postgres executed, and carries no per-plan latency.

## Path parameters

- `org_id` string, required

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
