---
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-serverless/operation/operation-get-streams-name-query
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana-serverless/operation/operation-get-streams-name-query
products:
  - Kibana
---

# Get query stream settings

Availability: Experimental

- 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>`
  You must create an API key and use the encoded value in the request header. To learn about creating keys, go to [API keys](https://www.elastic.co/docs/current/serverless/api-keys).

## Request body

`application/json`

Any of:
- **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 '{}'
```

