POST
/
streaming
/
streams
curl --request POST \
  --url https://api.gcore.com/streaming/streams \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Live stream by user e4d0f942-f35d",
  "pull": true,
  "active": true,
  "auto_record": false,
  "client_user_id": 1001,
  "uri": "srt://domain.com:5000/?streamid=12345",
  "html_overlay": false
}'
{
  "name": "Live stream by user e4d0f942-f35d",
  "pull": false,
  "active": true,
  "auto_record": false,
  "client_user_id": 1001,
  "uri": null,
  "html_overlay": false,
  "id": 1080200,
  "live": true,
  "backup_live": false,
  "push_url": "rtmp://vp-push-anx2.domain.com/in/123?08cd54f0",
  "backup_push_url": "rtmp://vp-push-ed1.domain.com/in/123b?08cd54f0",
  "push_url_srt": "srt://vp-push-anx2-srt.domain.com:5001?streamid=123#08cd54f0",
  "backup_push_url_srt": "srt://vp-push-anx1-srt.domain.com:5001?streamid=123b#08cd54f0",
  "push_url_whip": "https://whip.gvideo.co/123_561041/whip",
  "created_at": "2023-10-01T00:01:01.000Z",
  "started_at_primary": "2023-10-03T00:01:01.000Z",
  "started_at_backup": null,
  "finished_at_primary": "2023-10-01T23:59:59.000Z",
  "dvr_duration": 3600,
  "iframe_url": "https://demo-public.gvideo.io/streams/2675_19146",
  "dash_url": "https://demo-public.gvideo.io/cmaf/2675_19146/index.mpd",
  "hls_cmaf_url": "https://demo-public.gvideo.io/cmaf/2675_19146/master.m3u8",
  "hls_mpegts_url": "https://demo-public.gvideo.io/mpegts/2675_19146/master_mpegts.m3u8",
  "screenshot": "https://static.gvideo.co/videoplatform/streams/2675/19146/screenshots/last.jpg",
  "recording_duration": 1500,
  "transcoded_qualities": [
    "audioa",
    "360pa",
    "480pa",
    "720pa",
    "1080pa"
  ],
  "transcoding_speed": 1.01,
  "frame_rate": 29.97,
  "video_height": 1080,
  "video_width": 1920
}

Authorizations

APIKey
string
header
required

API key for authentication.

Body

application/json

Response

200
application/json

Successful

The response is of type object.