Skip to main content

Create Live Stream

Using create live stream API

A live stream create api will help you to connect your RTMP stream to videosdk.live.

curl -L -X POST 'https://api.videosdk.live/v1/livestreams' \
--header 'Authorization: `jwt token goes here`' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Nickname for livestream",
"record": true,
"restream": [
{
"url": "rtmp://x.rtmp.youtube.com/live2",
"streamKey": "0tjp-h6a2-8c9d-vusv-01uu"
}
]
}'

Request

  • __requestrequiredobject

      Properties
    • namerequiredstring

    • recordoptionalboolean

    • restreamArray<object>

      Restream video stream on other social media or other live streaming service
      • urlrequiredstring

      • streamKeyrequiredstring

Response

  • __responseobject

      Properties
    • recordboolean

    • idstring

    • namestring

    • streamKeystring

    • streamUrlstring

    • upstreamUrlstring

    • downstreamUrlstring

    • recordingUrlstring

    • restreamArray<object>

      • urlstring

      • streamKeystring

      • idstring

    • createdAtdate

    • updatedAtdate