---
type: api
title: Enable streams
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-post-streams-enable
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-post-streams-enable
products:
  - Kibana
---

# Enable streams

Availability: Experimental since 9.1

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

## Paths

- `POST` `/api/streams/_enable`
- `POST` `/s/{space_id}/api/streams/_enable`

## Description

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

Enables wired streams

## Required authorization

- Privileges: `manage_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>`

## Header parameters

- `kbn-xsrf` (string) — required
  A required header to protect against CSRF attacks

## Request body

`application/json`

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

## Response

Streams were enabled successfully.

## Code examples

#### Console

```console
POST kbn:/api/streams/_enable
{}
```

#### curl

```curl
curl -X POST "${KIBANA_URL}/api/streams/_enable" \
  -H "kbn-xsrf: true" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
```

