---
type: api
title: Get query stream settings
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-get-streams-name-query
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-get-streams-name-query
products:
  - Kibana
---

# Get query stream settings

Availability: Experimental since 9.4

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/streams/{name}/_query`
- `GET` `/s/{space_id}/api/streams/{name}/_query`

#### Path parameters

- `name` (string · max length: 200) — required
  The name of the query stream.

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Fetches the query settings of a query stream definition

## Required authorization

- Privileges: `read_stream`

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Request body

`application/json`

Any of:
- **object**
- **object**
- **object**

## Response

Query settings for the stream.

## Code examples

#### Console

```console
GET kbn:/api/streams/NAME/_query
{}
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/streams/${NAME}/_query" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
```

