query
Execute a read-only SQL query
Runs a SELECT / WITH / EXPLAIN against the target connection. Read-only enforcement runs at three layers (sql-guard, session READ ONLY, optional per-connection firewall) below this handler — writes are rejected with code: SYNTAX or PERMISSION_DENIED and never reach the upstream DB. Costs 1 quota unit per successful call.
post/v1/query
Request
- Base URL: https://data.thinair.co
- URL: https://data.thinair.co/v1/query
- Auth: API key in header x-api-key
Request body
Example request
{
"query": "SELECT id, status FROM vehicles LIMIT 10",
"connection": "fleet",
"limit": 100
}Response
Query result.
Changes
No recorded changes to this operation across all 1 revision of this API.