Skip to main content
POST
Analyze a query for optimization insights

Authorizations

Authorization
string
header
required

Organization API key (sl_…).

Headers

x-tenant-id
string
required

The organization ID the request is scoped to.

Body

application/json

Identifies the query execution to analyze.

query_id
string
required

The Snowflake query id of the query to analyze. The query must have run in the last 14 days for its execution profile to still be available.

Response

Successful Response

items
QueryInsight · object[]
required
page_token
string | null

Opaque cursor for the next page; empty/absent on the last page.

row_count
integer | null

Best-effort total for the filtered result set; may be null when expensive.