---
title: "Create a JetStream stream"
method: POST
path: "/instances/{instance_id}/nats/streams"
tags: ["engines"]
---

# Create a JetStream stream

`POST /instances/{instance_id}/nats/streams`

## Request

- Base URL: `https://app.lathe.live/api/v1`
- URL: `https://app.lathe.live/api/v1/instances/{instance_id}/nats/streams`
- Auth: none declared

## Path parameters

- `instance_id` string, required

## Request body

- StreamIn
  - `name` string, required
  - `subjects` string[], required: e.g. ["orders.>"]
  - `retention` string: limits | interest | workqueue
  - `storage` string: file | memory
  - `max_bytes` integer: -1 = no limit

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/lathe/apis/lathe-customer-api.md) · [All operations](https://skmtc.dev/lathe/apis/lathe-customer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lathe/apis/lathe-customer-api/revisions/68cfd9bb71c1?raw)
