---
title: "Create RTSPS streams for camera"
method: POST
path: "/v1/cameras/{id}/rtsps-stream"
tags: ["Camera information & management"]
---

# Create RTSPS streams for camera

`POST /v1/cameras/{id}/rtsps-stream`

## Request

- Base URL: `https://api.ui.com/v1/connector/consoles/942A6FF664C0000000000964970E0000000009E710560000000068A9873F:9999999999/proxy/protect/integration`
- URL: `https://api.ui.com/v1/connector/consoles/942A6FF664C0000000000964970E0000000009E710560000000068A9873F:9999999999/proxy/protect/integration/v1/cameras/{id}/rtsps-stream`
- Auth: none declared
- TypeScript: <https://skmtc.dev/ubiquiti/apis/unifi-protect-api/docs/v1/cameras/:id/rtsps-stream/post.ts> (a function with typed inputs; its response is checked against the schema)

Returns RTSPS stream URLs for specified quality levels

## Path parameters

- `id` string, required: The primary key of camera

## Request body

- object
  - `qualities` ChannelQuality[], required: Array of quality levels of RTSPS streams. All qualities (high, medium, low) are available for all cameras. The package quality is only available for cameras with hasPackageCamera: true.

## Response `200`

Success response

- CreatedRtspsStreams: The RTSPS stream URLs for the camera
  - `high` string, uri
  - `medium` string, uri
  - `low` string, uri
  - `package` string, uri

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ubiquiti/apis/unifi-protect-api.md) - [All operations](https://skmtc.dev/ubiquiti/apis/unifi-protect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ubiquiti/apis/unifi-protect-api/revisions/e341e1381db1?raw)
