> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Queries

Gets a list of queries accessible to the user, ordered by creation time.

**Note**: Calling this API concurrently 10 or more times could result in throttling, service degradation, or a temporary ban.

<Note>
  External Documentation

  To learn more, visit the [Databricks documentation](https://docs.databricks.com/api/workspace/queries/list).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter        | Description                                                            |
  | ---------------- | ---------------------------------------------------------------------- |
  | Page Size        | The number of items to return per page. Valid range is 1-100.          |
  | Page Token       | A token used for pagination, allowing you to retrieve data in batches. |
  | Return All Pages | Automatically fetch all resources, page by page.                       |
</div>

## Example Output

```json theme={"dark"}
{
	"next_page_token": "eDg",
	"results": [
		{
			"description": "Example description",
			"owner_user_name": "user@acme.com",
			"tags": [
				"Tag 1"
			],
			"display_name": "Example query 1",
			"id": "ae25e731-92f2-4838-9fb2-1ca364320a3d",
			"lifecycle_state": "ACTIVE",
			"last_modifier_user_name": "user@acme.com",
			"query_text": "SELECT 1",
			"parameters": [
				{
					"name": "foo",
					"text_value": {
						"value": "bar"
					},
					"title": "foo"
				}
			],
			"update_time": "2019-08-24T14:15:22Z",
			"warehouse_id": "a7066a8ef796be84",
			"run_as_mode": "OWNER",
			"create_time": "2019-08-24T14:15:22Z"
		},
		{
			"description": "Example description",
			"owner_user_name": "user@acme.com",
			"tags": [
				"Tag 1"
			],
			"display_name": "Example query 2",
			"id": "be25e731-92f2-4838-9fb2-1ca364320a3d",
			"lifecycle_state": "ACTIVE",
			"last_modifier_user_name": "user@acme.com",
			"query_text": "SELECT 1",
			"parameters": [
				{
					"name": "foo",
					"text_value": {
						"value": "bar"
					},
					"title": "foo"
				}
			],
			"update_time": "2019-08-24T14:15:22Z",
			"warehouse_id": "a7066a8ef796be84",
			"run_as_mode": "OWNER",
			"create_time": "2019-08-24T14:15:22Z"
		}
	]
}
```

## Workflow Library Example

[List Queries with Databricks and Send Results Via Email](https://library.blinkops.com/workflows/list-queries-with-databricks-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-queries-with-databricks-and-send-results-via-email/canvas" />
</div>
