cURL
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
Type "Bearer" followed by a space and JWT token.
Request body
Show child attributes
OK
true
Was this page helpful?