Add Channel

Add a manually-configured streaming channel

Info

Required scope: channels.write

Warning

This method requires authentication

curl -X POST \
     -H "Authorization: Bearer [access token]" \
     -H "Content-Type: application/json" \
     -d '{"platformId": 29, "streamUrl": "rtmp://example.com/live", "streamKey": "abc123"}' \
     https://api.restream.io/v2/user/channels

Request Body

FieldTypeDescription
platformIdnumberPlatform ID (see table below)
streamUrlstringStream URL (required for some platforms)
streamKeystringStream key (required for some platforms)
displayNamestringOptional display name for the channel
rtmpUsernamestringOptional RTMP auth username (Custom RTMP only)
rtmpPasswordstringOptional RTMP auth password (Custom RTMP only)
instagramUsernamestringOptional Instagram username (Instagram only)

Supported Platforms

PlatformIDstreamUrlstreamKeyAdditional
Custom RTMP29requiredoptionalrtmpUsername, rtmpPassword optional
Facebook Group37required
Steam49requiredrequired
Nimo60requiredrequired
Naver61requiredrequired
Mixcloud68required
Telegram72requiredrequired
Instagram73requiredinstagramUsername optional; displayName ignored
Amazon Live74requiredrequired
Custom SRT78required
Substack79required
Mux80required
Custom WHIP81required
Custom HLS Push82required

Response

Success (201)
Error (Invalid Stream Key)
Error (Invalid URL)
Error (Unauthorized)
{
  "id": 123456,
  "platformId": 29,
  "channelUrl": "https://example.com/live",
  "displayName": "My Custom RTMP"
}