v5

latestOpenAPI 3.1.02026-08-081,0211,3082.1 MB
Copilot

Analyze Query V2

Analyze a SQL query and provide optimization recommendations

Args: query_id: The query ID to analyze model_type: The model to use for analysis (CLAUDE or DEEPSEEK) instance_id: The Snowflake instance ID

post/copilot/quickchat/query-analysis/v2/plain/{query_id}

Path parameters

query_idstring required

Query parameters

model_type'claude' | 'deepseek'
instance_idstring
include_sqlboolean

Headers

x-tenantstring

Response

Successful Response

object required