Query

Execute SQL

Beta
POST

Request

This endpoint expects an object.
sql_command
stringRequired
database_id
integerRequired

Response

This endpoint returns an object
result
anyOptional
POST
1curl -X POST https://api.athenaintelligence.ai/api/v0/execute-sql \
2 -H "X-API-KEY: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "sql_command": "sql_command",
6 "database_id": 1
7}'
200
Successful
1{
2 "result": {
3 "key": "value"
4 }
5}