PreviewEnable / Disable Stream

Enable / Disable Stream

Update status of stream

curl -X POST "https://api.5centscdn.com/v2/streams/timeshift/1001/status" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "disabled": 0
}'
{
  "result": "success",
  "message": "Stream Updated",
  "stream": {
    "monitoring_id": null,
    "type": "timeshift",
    "id": 51730,
    "serviceid": 103,
    "name": "james_ts/take_dnskl",
    "codec": "h264",
    "ingests": [
      [
        "RTMP"
      ],
      [
        "RTMP"
      ]
    ],
    "protocols": [
      [
        "DASH",
        "HLS"
      ],
      [
        "DASH",
        "HLS"
      ]
    ],
    "parentid": 51691,
    "server": "1",
    "backup": "",
    "dedicatedLTC": "0",
    "hasAdvancedFeatures": "0",
    "monitoring_triggers": null,
    "draft": "0",
    "disabled": "1",
    "created_at": "2026-01-01 00:00:00",
    "updated_at": "2026-05-04 06:48:09",
    "lastseen_at": false,
    "deleted": null,
    "ingestsLock": 0,
    "protocolsLock": 0,
    "status": "Deploying",
    "has": {
      "rtmp": 0,
      "rtsp": 0,
      "hls": 1,
      "dash": 1,
      "rtmpauth": true
    },
    "parts": {
      "pp": "james_ts",
      "sn": "take_dnskl",
      "full": "james_tstake_dnskl"
    },
    "parent": {
      "id": 51691,
      "name": "james/take",
      "codec": "h264",
      "stype": "abr",
      "rtmpauth": "Y"
    },
    "restream": {},
    "timeshift": {
      "shift": 31553,
      "type": "stream"
    },
    "playbackurls": {
      "scheme": "https",
      "url_prefix": "https://stream-abc12-hls-live.stream.example.com",
      "rtmp": "",
      "rtsp": "",
      "hlsManifest": "playlist.m3u8",
      "dashManifest": "manifest.mpd",
      "hls": "https://hash-hls-live.5centscdn.com",
      "dash": "https://hash-hls-live.5centscdn.com",
      "players": {
        "flowplayer": {
          "baseQ": "",
          "base": "https://cdn.example.com/flowplayer/hls/",
          "hls": "https://cdn.example.com/flowplayer/hls/aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4",
          "rtmp": "",
          "rtsp": ""
        },
        "videojs": {
          "baseQ": "",
          "base": "https://cdn.example.com/videojs/hls/",
          "hls": "https://cdn.example.com/videojs/hls/aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4",
          "rtmp": "",
          "rtsp": ""
        },
        "own": {
          "hashes": {
            "stream-abc12-hls-live.stream.example.com": {
              "hash": "kqjul2i2j2pug9rz",
              "hls": "https://hash-hls-live.5centscdn.com",
              "base64": "aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4",
              "dash": "https://hash-hls-live.5centscdn.com",
              "base64dash": "aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4"
            }
          },
          "baseQ": "?showcv=true&title=james_ts/take_dnskl",
          "base": "https://cdn.example.com/player/hls/skin1/kqjul2i2j2pug9rz/",
          "hls": "https://cdn.example.com/player/hls/skin1/kqjul2i2j2pug9rz/aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4?showcv=true&title=james_ts/take_dnskl",
          "dash": "https://cdn.example.com/player/dash/skin1/kqjul2i2j2pug9rz/aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4?showcv=true&title=james_ts/take_dnskl"
        }
      },
      "tokenized": null
    },
    "platformsCount": 2,
    "ssl_enabled": true,
    "hash": "take_dnskl",
    "securetoken": {
      "enabled": "N",
      "policy": "D",
      "keyip": "N",
      "list": "",
      "timeout": 3600,
      "session": "0",
      "ips": "",
      "dirs": null,
      "active": "N"
    },
    "domainlock": {
      "enabled": "N",
      "policy": "Y",
      "list": "example.com,docs.example.com",
      "ips": "",
      "noreferer": "N",
      "active": "N"
    },
    "geoblock": {
      "enabled": "N",
      "policy": "N",
      "list": [
        ""
      ],
      "ips": "",
      "active": "N"
    },
    "ipaccess": {
      "enabled": "N",
      "policy": "N",
      "list": "",
      "ips": "",
      "active": "N"
    },
    "useragent": {
      "enabled": "N",
      "policy": "Y",
      "list": "",
      "ips": "",
      "casesensitive": "N",
      "active": "N",
      "listArr": [
        ""
      ]
    },
    "transcode": {
      "ltc": 0,
      "type": "mixed",
      "enabled": false,
      "isEditable": true
    },
    "platforms": [
      {
        "id": 42117,
        "rtmp": "rtmp://rtmp.5centscdn.com:1935/",
        "auth": "Y",
        "username": "admin",
        "password": "password",
        "isSRT": false,
        "key": "password",
        "schedule": "instant",
        "scheduletime": null,
        "codec": null,
        "length": "00:00",
        "relid": 51730,
        "dedicatedLTC": "0",
        "transcode": {
          "ltc": 0,
          "type": "mixed",
          "enabled": false,
          "isEditable": true
        },
        "disabled": "0",
        "name": "Custom RTMP Flyer",
        "platform_id": 1,
        "provider_id": 0,
        "video_id": ""
      }
    ],
    "messages": {
      "warning": [
        "Stream is disabled.<a href='#enableModal' class='modal-trigger' style='margin-left: 25px;'>Click here to Enable Stream</a>"
      ]
    },
    "adInsertion": null
  }
}
POST
/streams/timeshift/{streamid}/status
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

Content-Typestring
Required

The media type of the request body

Options: application/json
disabledinteger

Set to 1 to disable the stream, 0 to enable it.

Options: 0, 1
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Path Parameters

streamidstring
Required

Stream ID

Example:
1001

Body

application/json
disabledinteger

Set to 1 to disable the stream, 0 to enable it.

Allowed values:01

Responses

resultstring

Status of the API response.

messagestring

Human-readable message describing the result.

streamobject

Stream object containing configuration and status details.