POST /stream
to create a stream
objectPOST /stream
creates a parent stream object. The parent configuration is
inherited by all future child-session stream
objects.
curl -X POST \-H 'content-type: application/json' \-H 'authorization: Bearer {api-key}' \-d '{"name": "test_stream"}' \https://livepeer.com/api/stream
{"name":"test_stream","kind":"stream","userId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxx","id":"yyyyyyyy-yyyy-yyyy-yyyy-yyyy","createdAt":1595721600,"streamKey":"zzzz-zzzz-zzzz-zzzz","playbackId":"xyz123xyz123","createdByTokenName":"test-api-key",{other asset object keys, like profiles}}
{"name": "test_stream","record": true,"profiles": [{"name": "720p","bitrate": 2000000,"fps": 30,"width": 1280,"height": 720},{"name": "480p","bitrate": 1000000,"fps": 30,"width": 854,"height": 480},{"name": "360p","bitrate": 500000,"fps": 30,"width": 640,"height": 360}]}