---
title: "Create RTStream"
method: POST
path: "/rtstream/"
tags: ["RTStream"]
---

# Create RTStream

`POST /rtstream/`

## Request body

- object
  - `url` string, required — RTSP or YouTube stream URL
  - `name` string
  - `collection_id` string
  - `sample_rate` integer
  - `media_types` string[]
  - `store` boolean
  - `enable_transcript` boolean
  - `ws_connection_id` string

## Response `201`

RTStream created

- object
  - `success` boolean
  - `data` RTStream
    - `id` string
    - `name` string
    - `status` 'connected' | 'stopped'
    - `sample_rate` integer
    - `media_types` string[]
    - `collection_id` string
    - `store` boolean
    - `created_at` string, date-time

## Other responses

- `400` — Validation error
- `402` — Insufficient credits

---

[API](https://skmtc.net/video-db/apis/videodb-server-api.md) · [All operations](https://skmtc.net/video-db/apis/videodb-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/video-db/videodb-server-api/revisions/21b1d1d3eae8/schema)
