Skip to main content

Execute SQL Query

POST 

/sql/:sqlID/execute

Run a saved query. Every body field is optional: a bare POST with an empty body runs the saved query with its stored defaults and the cache enabled. Applies a per-query soft rate cap (rate_limit_rpm, clamped to the plan's hard cap) checked before the per-profile hard cap (rpm_sql_execute); cache hits are charged against a separate cached-read ceiling (rpm_sql_execute_cached).

Authentication accepts either a Profile Token (runs the query directly as its owning profile) or an Access-Management-granted analysis / Run-user token (the token must be granted the execute action on the query by id or tag; the query then runs as its owning profile). The grant authorizes execution, not filtering.

Request

Responses

Query result envelope.