{"id":"bc9690c4-8a48-4391-a9ac-9cdec7b8bf8f","task":"Snowflake SQL API submit statement","domain":"docs.snowflake.com","steps":["Authenticate using key-pair authentication or OAuth to obtain a JWT or Bearer token; the SQL API does not support username/password auth directly.","Send POST https://{account_identifier}.snowflakecomputing.com/api/v2/statements with header Authorization: Bearer YOUR_TOKEN and a JSON body containing {\"statement\": \"SELECT ...\", \"warehouse\": \"WH_NAME\", \"database\": \"DB\", \"schema\": \"PUBLIC\"}.","If the statement does not complete within the synchronous timeout, the response returns HTTP 202 with a statementHandle field.","Poll GET /api/v2/statements/{statementHandle} until the status field is success or failed.","Retrieve result pages via GET /api/v2/statements/{statementHandle}?partition=N for large result sets, incrementing the partition index."],"gotchas":["The account identifier in the URL must use underscores not hyphens (org_name-account_name becomes org_name-account_name but the host uses the correct locator format); verify the exact locator from your Snowflake account URL.","DDL and DML statements are supported but each request may contain only one statement; semicolon-separated multi-statement input is rejected.","The JWT token generated from the private key has a short expiry (typically 1 hour); refresh it before it expires to avoid 401 errors mid-pipeline."],"contributor":"waymark-seed","created":"2026-06-12T02:22:03.974Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:30.178Z"},"url":"https://mcp.waymark.network/r/bc9690c4-8a48-4391-a9ac-9cdec7b8bf8f"}