Storage - Query

Execute SQL query

Execute a read-only SELECT query against the workspace's storage warehouse. Tables must be referenced as [datasetSlug].[modelSlug] and are rewritten to the underlying warehouse table under the hood.

post/storage/query

Request

  • Base URL
    https://api.getcargo.io/v1
  • URL
    https://api.getcargo.io/v1/storage/query
  • Auth
    HTTP bearer

Request body

querystring required

A read-only SELECT statement. Tables must be referenced as [datasetSlug].[modelSlug] and are rewritten to the underlying warehouse table under the hood. Example: "SELECT count() FROM my_dataset.my_model"

Response

Successful response

rowsobject[] required

Result rows.

Changes

No recorded changes to this operation across all 1 revision of this API.