Skip to main content
GET
A query run is one execution of lake SQL. Cloud creates a run when you create a new query with sql or saved_query_id, or when a scheduled saved query fires. Each run stores a snapshot of the SQL and date range that actually ran, the status of that execution, and a preview of the result rows. The preview is bounded: at most 1000 rows, or less if the preview exceeds 2 MB. It is not the full result set. Editing a saved query later does not change past runs. This endpoint returns recent runs for one instance, newest first. Use the query parameters to narrow by saved query, status, or how the run started.

Authorization

Blnk Cloud APIs support any one of the following authentication methods. All of them work with your CLOUD_API_KEY or OAUTH_ACCESS_TOKEN.
Pass Authorization: Bearer CLOUD_API_KEY or Authorization: Bearer OAUTH_ACCESS_TOKEN.
string
required
Cloud API key or OAuth access token. Create credentials in API keys or OAuth.

Query parameters

string
required
Unique id of the instance (instance_...). Get it from get instance details. Do not pass deployment_id.
string
Return only runs that came from this saved query (lake_query_...). Omit it to include every run on the instance, including ad-hoc SQL that was not saved.
string
Return only runs in this state: running (still executing), succeeded (finished with rows or an empty result), or failed (the SQL did not complete).
string
Return only runs started this way: manual (you called Create new query) or scheduled (a saved-query schedule fired).
string
ID of the last run from the previous response (next_cursor). Cloud returns the next page after that run. Omit it on the first request.
integer
Maximum number of runs to return. Defaults to 50. Maximum 100. Values outside that range are treated as 50.

Response

array
Query runs for this instance, newest first.
string
ID of the last run on this page. Pass it as cursor on the next request to continue. Empty when there are no more runs.

Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.