---
title: "WebRTC - SDP offer in, SDP answer out; a body with bitrate_kbps pins the quality rung instead (control key)"
method: POST
path: "/devices/{name}/stream"
tags: ["Screen and input"]
---

# WebRTC - SDP offer in, SDP answer out; a body with bitrate_kbps pins the quality rung instead (control key)

`POST /devices/{name}/stream`

## Request

- Base URL: `https://api.clousd.com/v1`
- URL: `https://api.clousd.com/v1/devices/{name}/stream`
- Auth: HTTP bearer

## Request body

- object
  - `bitrate_kbps` integer: Pin the encoder bitrate: 200-20000, or 0 to hand the ladder back to automatic. Any other body is taken as an SDP offer.

## Response `200`

SDP answer for an offer; {"ok": true} for bitrate_kbps

## Other responses

- `400`: Error
- `403`: Error
- `409`: bitrate_kbps while no stream is running: there is nothing to change yet

---

[API](https://skmtc.dev/clousd/apis/clousd-api.md) · [All operations](https://skmtc.dev/clousd/apis/clousd-api/llms.txt) · [OpenAPI document](https://skmtc.dev/clousd/apis/clousd-api/revisions/0291ffd26ae3?raw)
