Run one read-only SQL statement
One SELECT or WITH statement, run as the least-privilege lac_explorer database role inside a READ ONLY transaction that is always rolled back, with a statement timeout and row/cell caps. Postgres grants are the confidentiality boundary: secret columns are not granted, so any statement touching them is refused by the database. A Postgres error returns verbatim in the error field. If the role is not provisioned the endpoint fails closed with 503.
Authorizations
Portal API key minted in portal Settings → API access. Scope read or write; pinned to one company. Send as Authorization: Bearer lac_sk_....
Query Parameters
Body
20000Response
Columns, rows (capped at 200), truncation flag, or a verbatim database error.
The response is of type object.