Run a tenant-scoped virtual SQL query
Runs one read-only SELECT against the virtual catalog for the authenticated organization and project. DAL catalog restrictions and limits of 1,000 rows and 5 MiB apply.
/v1/projects/{projectId}/sqlAuthorizationPersonal API key · headerrequiredYour personal API key from Settings > Personal API Keys, sent as Bearer <key>.
X-Organization-IdOrganization ID · headerrequiredThe organization to act in. Copy it with Copy organization ID in the organization menu or the settings sidebar.
projectIdstringrequiredapplication/jsonsqlstringrequiredResponse for status 200
catalog_versionstringrequiredcolumnsobject[]requiredShow propertiesHide properties
objectnamestringrequiredtypestringrequirednullablebooleanrequiredrowsobject[]requiredSQL integers outside the JavaScript safe range (-(2^53 - 1) to 2^53 - 1) are returned as exact decimal strings, including in nested values. Column types retain the original SQL types.
row_countintegerrequiredelapsed_msnumberrequiredResponse for status 400
errorstringrequiredmessagestringrequiredhintstringResponse for status 401
errorstringrequiredmessagestringrequiredhintstringResponse for status 403
errorstringrequiredmessagestringrequiredhintstringResponse for status 404
errorstringrequiredmessagestringrequiredhintstringResponse for status 422
errorstringrequiredmessagestringrequiredhintstringResponse for status 429
errorstringrequiredmessagestringrequiredhintstringResponse for status 502
errorstringrequiredmessagestringrequiredhintstringResponse for status 503
errorstringrequiredmessagestringrequiredhintstring