Legacy alias for `/gateway/fetch`
Mirrors `/gateway/fetch` for clients still calling `/gateway/data` with the same payload/response envelope.
Header Parameters
optional API key mirror of the apikey header
Required when X-Athena-Client is custom_supabase
uriRequired when X-Athena-Client is custom_supabase
Request Body
application/json
Column name to group results by
Time granularity for grouping timestamp data
"day" | "hour" | "minute"Column to aggregate (required when using aggregation_strategy)
Aggregation strategy to apply (requires aggregation_column)
"cumulative_sum"Whether to deduplicate during aggregation
Optional sort (camelCase). Use sort_by for snake_case.
Optional sort (snake_case). Same shape as sortBy.
Response Body
curl -X POST "https://athena-cluster.com/gateway/data" \ -H "Content-Type: application/json" \ -d '{ "conditions": [ {} ] }'Execute SQL using selected driver POST
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).
Fetch deferred request status GET
Returns the current state of a deferred gateway request (`queued`, `running`, `completed`, `failed`, etc.) together with available execution metadata.