Athena
Sql

Execute SQL using selected driver

For `driver: postgresql`, connection resolution matches gateway handlers: send `X-Athena-Client` for a registered client pool, or `X-JDBC-URL` with a `jdbc:postgresql://...` URL for a direct connection (subject to gateway JDBC allowlists when configured).

POST
/query/sql

Request Body

application/json

query*string
driver*string
Value in"athena" | "postgresql" | "supabase"
db_name*string

Response Body

application/json

curl -X POST "https://athena-cluster.com/query/sql" \  -H "Content-Type: application/json" \  -d '{    "query": "string",    "driver": "athena",    "db_name": "string"  }'
{}
Empty
Empty
Empty