***

title: create_stream
slug: /reference/python/rest/video/rooms/create-stream
description: Create a new stream for a video room.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Create a new stream for a video room, enabling external streaming output
(e.g., RTMP to a streaming platform).

<EndpointSchemaSnippet endpoint="POST /api/video/rooms/{id}/streams" />

## **Response Example**

<EndpointResponseSnippet endpoint="POST /api/video/rooms/{id}/streams" />

## **Example**

```python {9}
from signalwire.rest import RestClient

client = RestClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
)

stream = client.video.rooms.create_stream(
    "room-id",
    url="rtmp://live.example.com/stream-key"
)
```