Storage - Query

Download SQL query results

Execute a read-only SELECT query against the workspace's storage warehouse and download the results as a file.

post/storage/query/download

Request

  • Base URL
    https://api.getcargo.io/v1
  • URL
    https://api.getcargo.io/v1/storage/query/download
  • 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 * FROM my_dataset.my_model"

format'csv' | 'parquet'

Download format. Defaults to csv.

Response

Successful response

urlsstring[] required

Signed download URLs.

Changes

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