# Stream Add

Add stream to project

Reference API link: https://api.mov.mediaoutcast.com/documentation#/Streams/stream_store (opens new window)

POST

/api/projects/{project_id}/streams

KEY TYPE DESCRIPTION
title string Name of the live stream

Response:

{
  "message": "Stream added.",
  "stream": {
    "id": 80,
    "hash": "XE8g9WJx",
    "title": "New Live Stream",
    "description": "",
    "application": "live",
    "stream": "XE8g9WJx_d80f4ee5-0de0-4a35-8078-1b08bd35efea",
    "published": false,
    "resolutions": [
      {
        "id": 4,
        "name": "720p",
        "active": true
      },
      {
        "id": 5,
        "name": "480p",
        "active": true
      },
      {
        "id": 6,
        "name": "360p",
        "active": true
      }
    ],
    "tags": [],
    "category": null,
    "countries": [],
    "rtmps_url": "rtmps://stream.mediaoutcast.com/live/XE8g9WJx_d80f4ee5-0de0-4a35-8078-1b08bd35efea",
    "rtmp_url": "rtmp://stream.mediaoutcast.com/live/XE8g9WJx_d80f4ee5-0de0-4a35-8078-1b08bd35efea",
    "stream_url": "https://api.mov.mediaoutcast.com/storage/VjJd68GD/VjJd68GD/stream/XE8g9WJx/index.m3u8",
    "published_url": "https://static.mediaoutcast.com/storage/VjJd68GD/VjJd68GD/stream/XE8g9WJx/index.m3u8",
    "live": false,
    "live_channel": "stream.80",
    "live_event": "live",
    "receiving_count": 0,
    "processing": false,
    "paused": false,
    "web_socket_broadcaster": "pusher",
    "web_socket_key": "e35893989a0fe4e0c1ae",
    "web_socket_cluster": "eu",
    "image_urls": null,
    "embed": {
      "iframe": "<iframe width=\"560\" height=\"315\" src=\"https://static.mediaoutcast.com/streams/XE8g9WJx/stream.html\" title=\"New Live Stream\" frameborder=\"0\" scrolling=\"no\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>",
      "script": "<script src=\"https://static.mediaoutcast.com/player/master/js/mov-init.min.js\" async></script>\n<mov-player project-id=\"VjJd68GD\" stream-id=\"XE8g9WJx\"></mov-player>\n<script type=\"application/ld+json\">{\"@context\":\"http://schema.org/\",\"@type\":\"VideoObject\",\"name\":\"New Live Stream\",\"description\":\"\",\"uploadDate\":\"2024-01-10T12:04:12+01:00\",\"contentUrl\":\"https://static.mediaoutcast.com/storage/VjJd68GD/VjJd68GD/stream/XE8g9WJx/index.m3u8\"}</script>\n",
      "link": "https://static.mediaoutcast.com/streams/XE8g9WJx/stream.html"
    },
    "player": null,
    "backups": [
      {
        "id": 26,
        "name": "d80f4ee5-0de0-4a35-8078-1b08bd35efea",
        "rtmps_url": "rtmps://stream.mediaoutcast.com/live/XE8g9WJx_d80f4ee5-0de0-4a35-8078-1b08bd35efea",
        "rtmp_url": "rtmp://stream.mediaoutcast.com/live/XE8g9WJx_d80f4ee5-0de0-4a35-8078-1b08bd35efea",
        "publish": false,
        "live": false
      }
    ],
    "no_audio_stream": false
  }
}