Docs

Execute SQL Statement

Submit an SQL statement for execution.

GET

Query

Arguments
string

SQL statement to execute. See [Limitations of the SQL API](https://docs.snowflake.com/en/developer-guide/sql-api/intro.html#label-sql-api-limitations) for the lists of statements that are supported and not supported.

string

(Optional) Database in which the statement should be executed. The value in this field is case-sensitive. If you omit this field, the SQL API uses the database from the value of the `DEFAULT_NAMESPACE` property of the user.

string

(Optional) Warehouse to use when executing the statement. The value in this field is case-sensitive. If you omit this field, the SQL API uses the value of the `DEFAULT_WAREHOUSE` property of the user.

Uncommon arguments
boolean

(Optional) Set to `true` to execute the statement asynchronously and return the statement handle. - If the parameter is not specified or is set to false, a statement is executed and the results are returned if the execution is completed in 45 seconds. - If the statement execution takes longer to complete, the statement handle is returned.

boolean

(Optional) Set to `false` to return a SQL NULL value as the string "null", rather than as the value `null`.

object

(Optional) Values of [bind variables](https://docs.snowflake.com/en/developer-guide/sql-api/submitting-requests.html#label-sql-api-bind-variables) in the SQL statement. When executing the statement, Snowflake replaces placeholders (`?` and `:name`) in the statement with the provided values. Example: `{"1":{"type":"FIXED","value":"123"},"2":{"type":"TEXT","value":"teststring"}}`

object

(Optional) Session [parameters](https://docs.snowflake.com/en/sql-reference/parameters) that you want to set for this request.

number

(Optional) Timeout in seconds for statement execution. To set the timeout to the maximum value (604800 seconds), set timeout to `0`.

string

(Optional) Schema in which the statement should be executed. The value in this field is case-sensitive. If you omit this field, the SQL API uses the schema from the value of the `DEFAULT_NAMESPACE` property of the user.

string

(Optional) Role to use when executing the statement. The value in this field is case-sensitive. If you omit this field, the SQL API uses the value of the `DEFAULT_ROLE` property of the user.

Field selectionChoose which fields should be included in the response. Learn more
string

Comma-separated response fields to include.

Every app you connect,one REST pattern

Call any app with one REST pattern. MindCloud handles each provider's auth, request shape, and responses for you.

Learn what the Universal API is
One REST patternUse the same request structure across apps like Slack, HubSpot, Salesforce, and thousands more.
Managed connectionsSend a MindCloud connection ID instead of handling provider tokens, refresh logic, and credential storage yourself.
Action-level docsEach action page shows the exact endpoint, required arguments, optional controls, and response behavior for that app version.