Restore Stream
Restore publish stream
curl -X GET "https://api.5centscdn.com/v2/streams/publish/1001/restore" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY"
import requests
import json
url = "https://api.5centscdn.com/v2/streams/publish/1001/restore"
headers = {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://api.5centscdn.com/v2/streams/publish/1001/restore", {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.5centscdn.com/v2/streams/publish/1001/restore", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.5centscdn.com/v2/streams/publish/1001/restore')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['X-API-Key'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
{
"result": "success",
"message": "Stream Restored",
"stream": {
"monitoring_id": null,
"type": "publish",
"id": 54220,
"serviceid": 103,
"name": "testalthaf2/testpublish2",
"codec": "h264",
"ingests": [
[
"RTMP"
],
[
"RTMP"
]
],
"protocols": [
[
"HLS"
],
[
"HLS"
]
],
"parentid": null,
"server": "11,211",
"backup": "",
"dedicatedLTC": "0",
"hasAdvancedFeatures": "0",
"monitoring_triggers": null,
"draft": "0",
"disabled": "1",
"created_at": "2026-01-01 00:00:00",
"updated_at": "2026-05-06 06:33:08",
"lastseen_at": false,
"deleted": null,
"ingestsLock": 0,
"protocolsLock": 0,
"status": "Disabled",
"has": {
"rtmp": 1,
"rtsp": 0,
"hls": 0,
"dash": 0,
"rtmpauth": true
},
"fms": {
"server": {
"country": "North America",
"meta": {
"fmsUrl": "rtmp://fms-01-01.5centscdn.com"
}
}
},
"parts": {
"pp": "testalthaf2",
"sn": "testpublish2",
"full": "testalthaf2testpublish2"
},
"restream": {},
"platformsCount": 7,
"ssl_enabled": true,
"hash": "8afd74abdfae5ccf1fe6251bbc9cd0ed.sdp",
"publish": {
"id": 54220,
"type": "push",
"mode": "hls",
"urls": "",
"audiofix": "N"
},
"ipaccess": {
"enabled": "Y",
"policy": "Y",
"list": "123.2.2.2,111.2.3.4",
"ips": "",
"active": "Y"
},
"useragent": {
"enabled": "Y",
"policy": "Y",
"list": "test",
"ips": "",
"casesensitive": "N",
"active": "Y",
"listArr": [
"test"
]
},
"rtmpauth": {
"password": "",
"active": "N"
},
"transcode": {
"ltc": 0,
"type": "mixed",
"enabled": false,
"isEditable": true
},
"platforms": [
{
"id": 46674,
"rtmp": "",
"auth": "N",
"username": "",
"password": "",
"isSRT": false,
"key": "",
"schedule": "instant",
"scheduletime": "",
"codec": null,
"length": "00:00",
"relid": 54220,
"dedicatedLTC": "0",
"transcode": {
"ltc": 0,
"type": "mixed",
"enabled": false,
"isEditable": true
},
"disabled": 1,
"name": "YouTube - 1",
"platform_id": 1,
"provider_id": 2,
"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
}
}
/streams/publish/{streamid}/restoreTarget server for requests. Edit to use your own host.
API key (sent in header)
Stream ID
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Provide your API key in the header.
Path Parameters
Responses
Status of the API response.
Human-readable message describing the result.
Stream object containing configuration and status details.
Unique monitoring identifier for the stream.
Type identifier for this stream or object.
Unique numeric identifier.
Unique identifier of the service this stream belongs to.
Name of the stream.
Video codec used for the stream.
List of active ingest connection details for each server.
Supported streaming protocols for each server.
Identifier of the parent stream, if this is a child stream.
Server ID or identifier assigned to the stream.
Backup server ID for failover.
Whether a dedicated live transcoding server is allocated for this stream.
Whether advanced features are enabled for this stream.
Monitoring alert trigger configuration for the stream.
Draft status flag. 0 means published; 1 means unpublished draft.
Disabled flag. 0 means active; 1 means disabled.
Timestamp when the stream was created.
Timestamp when the stream was last updated.
Timestamp of last seen activity, or false if never seen.
Deletion timestamp, or null if the stream is not deleted.
Whether the ingest endpoint list is locked from editing.
Whether the supported protocol list is locked from editing.
Current deployment or operational status of the stream.
Flags indicating which streaming protocols are active.
Whether RTMP streaming is enabled. 1 = enabled, 0 = disabled.
Whether RTSP streaming is enabled. 1 = enabled, 0 = disabled.
Whether HLS streaming is enabled. 1 = enabled, 0 = disabled.
Whether DASH streaming is enabled. 1 = enabled, 0 = disabled.
Whether RTMP publish authentication is required.
Flash Media Server ingest configuration for the stream.
Server ID or identifier assigned to the stream.
Geographic region of the ingest server.
Metadata object for the server.
RTMP ingest URL for the assigned FMS server.
Stream name components.
Stream name prefix (part 1, before the slash).
Stream name suffix (part 2, after the slash).
Combined full stream name without the slash separator.
Restream platform configuration object.
Number of external restreaming platforms configured.
Whether HTTPS/SSL is enabled for playback.
Short hash or slug used in stream URLs.
Unique numeric identifier.
Type identifier for this stream or object.
Operating mode for the configuration.
IP address access control configuration.
Enable or disable this feature.
Policy mode controlling allow/deny behavior.
Comma-separated list of allowed or blocked values.
IP addresses associated with the access control policy.
Whether this policy is currently enforced.
User-agent based access control configuration.
Enable or disable this feature.
Policy mode controlling allow/deny behavior.
Comma-separated list of allowed or blocked values.
IP addresses associated with the access control policy.
Whether user-agent pattern matching is case-sensitive.
Whether this policy is currently enforced.
User-agent filter list as a parsed array.
Whether RTMP publish authentication is required.
Password for RTMP publish authentication.
Whether this policy is currently enforced.
Live transcoding configuration for the stream.
Live transcoding server ID assigned to this stream.
Type identifier for this stream or object.
Enable or disable this feature.
Whether the transcoding configuration can be edited.
List of configured external restreaming platform entries.
Unique numeric identifier.
RTMP playback or destination URL.
Whether RTMP publish authentication is enabled.
Username for RTMP authentication.
Password for RTMP publish authentication.
RTMP stream key for the restream platform.
Publishing schedule type.
Video codec used for the stream.
Maximum stream length in hh:mm:ss format.
Whether a dedicated live transcoding server is allocated for this stream.
Live transcoding configuration for the stream.
Live transcoding server ID assigned to this stream.
Type identifier for this stream or object.
Enable or disable this feature.
Whether the transcoding configuration can be edited.
Name of the stream.
Unique identifier of the ad insertion provider record.
Informational messages related to the stream state.
Ad insertion configuration for the stream, or null if not configured.