curl --request POST \
--url https://api.traceloop.com/v2/evaluators/execute/sql-validator \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"text": "SELECT * FROM users WHERE id = 1;"
}
}
'{
"is_valid_sql": true
}Validate SQL query syntax
Request Body:
input.text (string, required): The text to validate as SQLcurl --request POST \
--url https://api.traceloop.com/v2/evaluators/execute/sql-validator \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"text": "SELECT * FROM users WHERE id = 1;"
}
}
'{
"is_valid_sql": true
}Was this page helpful?