# Elastic Stack (ELK Stack) data stream API

**Canonical:** https://apis.io/apis/elk-stack/elk-stack-data-stream-api/  
**Provider:** Elastic Stack (ELK Stack) — https://apis.io/providers/elk-stack/  
**Base URL:** https://{elasticsearch_endpoint}  
**Documentation:** https://www.elastic.co/docs/api/doc/elasticsearch/

Elastic Stack (ELK Stack) data stream API is one of 132 APIs that [Elastic Stack (ELK Stack)](https://apis.io/providers/elk-stack/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Datastream. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

The data stream API from Elastic Stack (ELK Stack) — 14 operation(s) for data stream.

## Operations (21)

| Method | Path | Summary |
|---|---|---|
| GET | `/_data_stream/{name}` | Get data streams |
| PUT | `/_data_stream/{name}` | Create a data stream |
| DELETE | `/_data_stream/{name}` | Delete data streams |
| GET | `/_data_stream/_stats` | Get data stream stats |
| GET | `/_data_stream/{name}/_stats` | Get data stream stats |
| GET | `/_data_stream/{name}/_lifecycle` | Get data stream lifecycles |
| PUT | `/_data_stream/{name}/_lifecycle` | Update data stream lifecycles |
| GET | `/_data_stream/{name}/_options` | Get data stream options |
| PUT | `/_data_stream/{name}/_options` | Update data stream options |
| DELETE | `/_data_stream/{name}/_options` | Delete data stream options |
| POST | `/{index}/_downsample/{target_index}` | Downsample an index |
| GET | `/{index}/_lifecycle/explain` | Get the status for a data stream lifecycle |
| GET | `/_lifecycle/stats` | Get data stream lifecycle stats |
| GET | `/_data_stream` | Get data streams |
| GET | `/_data_stream/{name}/_mappings` | Get data stream mappings |
| PUT | `/_data_stream/{name}/_mappings` | Update data stream mappings |
| GET | `/_data_stream/{name}/_settings` | Get data stream settings |
| PUT | `/_data_stream/{name}/_settings` | Update data stream settings |
| POST | `/_data_stream/_migrate/{name}` | Convert an index alias to a data stream |
| POST | `/_data_stream/_modify` | Update data streams |
| POST | `/_data_stream/_promote/{name}` | Promote a data stream |

## Machine-readable artifacts (8)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/elk-stack/refs/heads/main/openapi/elk-stack-data-stream-api-openapi.yml
- **Documentation** — https://www.elastic.co/docs/reference/elasticsearch
- **APIReference** — https://www.elastic.co/docs/api/doc/elasticsearch/
- **SourceCode** — https://github.com/elastic/elasticsearch-specification
- **Documentation** — https://www.elastic.co/docs/reference/kibana
- **APIReference** — https://www.elastic.co/docs/api/doc/kibana/
- **SourceCode** — https://github.com/elastic/kibana
- **ToolCrosswalk** — https://raw.githubusercontent.com/api-evangelist/elk-stack/refs/heads/main/mcp/elk-stack-tool-crosswalk.yml

## Other Elastic Stack (ELK Stack) APIs (12)

- [Elastic Cloud API](https://apis.io/apis/elk-stack/elastic-cloud-api/)
- [Elastic Stack (ELK Stack) Accounts API](https://apis.io/apis/elk-stack/elk-stack-accounts-api/)
- [Elastic Stack (ELK Stack) Actions API](https://apis.io/apis/elk-stack/elk-stack-actions-api/)
- [Elastic Stack (ELK Stack) agent builder API](https://apis.io/apis/elk-stack/elk-stack-agent-builder-api/)
- [Elastic Stack (ELK Stack) Alerting API](https://apis.io/apis/elk-stack/elk-stack-alerting-api/)
- [Elastic Stack (ELK Stack) Alerting V2 API](https://apis.io/apis/elk-stack/elk-stack-alerting-v2-api/)
- [Elastic Stack (ELK Stack) Analytics API](https://apis.io/apis/elk-stack/elk-stack-analytics-api/)
- [Elastic Stack (ELK Stack) APM agent configuration API](https://apis.io/apis/elk-stack/elk-stack-apm-agent-configuration-api/)
- [Elastic Stack (ELK Stack) APM agent keys API](https://apis.io/apis/elk-stack/elk-stack-apm-agent-keys-api/)
- [Elastic Stack (ELK Stack) APM annotations API](https://apis.io/apis/elk-stack/elk-stack-apm-annotations-api/)
- [Elastic Stack (ELK Stack) APM server schema API](https://apis.io/apis/elk-stack/elk-stack-apm-server-schema-api/)
- [Elastic Stack (ELK Stack) APM sourcemaps API](https://apis.io/apis/elk-stack/elk-stack-apm-sourcemaps-api/)

## Tags

Datastream

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/elk-stack/elk-stack-data-stream-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/elk-stack/.
