Execute SQL

Using this endpoint, you can execute any kind of SQL statement. If the validate flag is specified, the request will be validated against provided authorization inputs and referenced resource configuration. If validation fails for any reason, a 422 Unprocessable Entity will be returned with details about the original request and specifics on missing inputs. Unlike the Proxy SQL API, this API is executed directly against the SxT Network and requires explicit configuration of authentication and authorization tokens.

Body Params
string
required

The raw SQL text to execute

string
enum

Defines the source network against which to execute the SQL statement (default = MANAGED). You can only run queries against MAINNET and TESTNET

Allowed:
biscuits
array of strings

The (optional) biscuits needed to authorize the request

biscuits
boolean

Determines whether or not the request should be validated prior to execution

Headers
string

The origin application of the request. This header is used to tag requests in the query log

Responses

Language
Credentials
Bearer
JWT
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json