Create Delayed Stream
insert informations of a delayed stream
curl -X POST "https://api.5centscdn.com/v2/streams/timeshift/new" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"_METHOD": "PUT",
"name": "test",
"codec": "",
"protocols": [
"HLS"
],
"timeshift": 2859,
"parent": 59180,
"domainlock[enabled]": "Y",
"domainlock[policy]": "Y",
"domainlock[list]": "example.com,docs.example.com",
"domainlock[ips]": "",
"domainlock[noreferer]": "N",
"domainlock[active]": "Y",
"geoblock[enabled]": "Y",
"geoblock[policy]": "Y",
"geoblock[list]": [],
"geoblock[ips]": "",
"geoblock[active]": "N",
"ipaccess[enabled]": "Y",
"ipaccess[policy]": "N",
"ipaccess[list]": "",
"ipaccess[ips]": "",
"ipaccess[active]": "N",
"ndvr[enabled]": "Y",
"ndvr[retention]": 5,
"record[server]": 1,
"record[enabled]": "Y",
"record[retention]": 3,
"securetoken[enabled]": "Y",
"securetoken[policy]": "D",
"securetoken[list]": "32862cdb6276e19a",
"securetoken[ips]": "",
"securetoken[keyip]": "N",
"securetoken[session]": "0",
"securetoken[timeout]": 3600,
"securetoken[active]": "Y",
"useragent[enabled]": "Y",
"useragent[policy]": "Y",
"useragent[list]": "",
"useragent[ips]": "",
"useragent[casesensitive]": "N",
"useragent[active]": "N"
}'
import requests
import json
url = "https://api.5centscdn.com/v2/streams/timeshift/new"
headers = {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
data = {
"_METHOD": "PUT",
"name": "test",
"codec": "",
"protocols": [
"HLS"
],
"timeshift": 2859,
"parent": 59180,
"domainlock[enabled]": "Y",
"domainlock[policy]": "Y",
"domainlock[list]": "example.com,docs.example.com",
"domainlock[ips]": "",
"domainlock[noreferer]": "N",
"domainlock[active]": "Y",
"geoblock[enabled]": "Y",
"geoblock[policy]": "Y",
"geoblock[list]": [],
"geoblock[ips]": "",
"geoblock[active]": "N",
"ipaccess[enabled]": "Y",
"ipaccess[policy]": "N",
"ipaccess[list]": "",
"ipaccess[ips]": "",
"ipaccess[active]": "N",
"ndvr[enabled]": "Y",
"ndvr[retention]": 5,
"record[server]": 1,
"record[enabled]": "Y",
"record[retention]": 3,
"securetoken[enabled]": "Y",
"securetoken[policy]": "D",
"securetoken[list]": "32862cdb6276e19a",
"securetoken[ips]": "",
"securetoken[keyip]": "N",
"securetoken[session]": "0",
"securetoken[timeout]": 3600,
"securetoken[active]": "Y",
"useragent[enabled]": "Y",
"useragent[policy]": "Y",
"useragent[list]": "",
"useragent[ips]": "",
"useragent[casesensitive]": "N",
"useragent[active]": "N"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://api.5centscdn.com/v2/streams/timeshift/new", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
},
body: JSON.stringify({
"_METHOD": "PUT",
"name": "test",
"codec": "",
"protocols": [
"HLS"
],
"timeshift": 2859,
"parent": 59180,
"domainlock[enabled]": "Y",
"domainlock[policy]": "Y",
"domainlock[list]": "example.com,docs.example.com",
"domainlock[ips]": "",
"domainlock[noreferer]": "N",
"domainlock[active]": "Y",
"geoblock[enabled]": "Y",
"geoblock[policy]": "Y",
"geoblock[list]": [],
"geoblock[ips]": "",
"geoblock[active]": "N",
"ipaccess[enabled]": "Y",
"ipaccess[policy]": "N",
"ipaccess[list]": "",
"ipaccess[ips]": "",
"ipaccess[active]": "N",
"ndvr[enabled]": "Y",
"ndvr[retention]": 5,
"record[server]": 1,
"record[enabled]": "Y",
"record[retention]": 3,
"securetoken[enabled]": "Y",
"securetoken[policy]": "D",
"securetoken[list]": "32862cdb6276e19a",
"securetoken[ips]": "",
"securetoken[keyip]": "N",
"securetoken[session]": "0",
"securetoken[timeout]": 3600,
"securetoken[active]": "Y",
"useragent[enabled]": "Y",
"useragent[policy]": "Y",
"useragent[list]": "",
"useragent[ips]": "",
"useragent[casesensitive]": "N",
"useragent[active]": "N"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"_METHOD": "PUT",
"name": "test",
"codec": "",
"protocols": [
"HLS"
],
"timeshift": 2859,
"parent": 59180,
"domainlock[enabled]": "Y",
"domainlock[policy]": "Y",
"domainlock[list]": "example.com,docs.example.com",
"domainlock[ips]": "",
"domainlock[noreferer]": "N",
"domainlock[active]": "Y",
"geoblock[enabled]": "Y",
"geoblock[policy]": "Y",
"geoblock[list]": [],
"geoblock[ips]": "",
"geoblock[active]": "N",
"ipaccess[enabled]": "Y",
"ipaccess[policy]": "N",
"ipaccess[list]": "",
"ipaccess[ips]": "",
"ipaccess[active]": "N",
"ndvr[enabled]": "Y",
"ndvr[retention]": 5,
"record[server]": 1,
"record[enabled]": "Y",
"record[retention]": 3,
"securetoken[enabled]": "Y",
"securetoken[policy]": "D",
"securetoken[list]": "32862cdb6276e19a",
"securetoken[ips]": "",
"securetoken[keyip]": "N",
"securetoken[session]": "0",
"securetoken[timeout]": 3600,
"securetoken[active]": "Y",
"useragent[enabled]": "Y",
"useragent[policy]": "Y",
"useragent[list]": "",
"useragent[ips]": "",
"useragent[casesensitive]": "N",
"useragent[active]": "N"
}`)
req, err := http.NewRequest("POST", "https://api.5centscdn.com/v2/streams/timeshift/new", bytes.NewBuffer(data))
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/timeshift/new')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['X-API-Key'] = 'YOUR_API_KEY'
request.body = '{
"_METHOD": "PUT",
"name": "test",
"codec": "",
"protocols": [
"HLS"
],
"timeshift": 2859,
"parent": 59180,
"domainlock[enabled]": "Y",
"domainlock[policy]": "Y",
"domainlock[list]": "example.com,docs.example.com",
"domainlock[ips]": "",
"domainlock[noreferer]": "N",
"domainlock[active]": "Y",
"geoblock[enabled]": "Y",
"geoblock[policy]": "Y",
"geoblock[list]": [],
"geoblock[ips]": "",
"geoblock[active]": "N",
"ipaccess[enabled]": "Y",
"ipaccess[policy]": "N",
"ipaccess[list]": "",
"ipaccess[ips]": "",
"ipaccess[active]": "N",
"ndvr[enabled]": "Y",
"ndvr[retention]": 5,
"record[server]": 1,
"record[enabled]": "Y",
"record[retention]": 3,
"securetoken[enabled]": "Y",
"securetoken[policy]": "D",
"securetoken[list]": "32862cdb6276e19a",
"securetoken[ips]": "",
"securetoken[keyip]": "N",
"securetoken[session]": "0",
"securetoken[timeout]": 3600,
"securetoken[active]": "Y",
"useragent[enabled]": "Y",
"useragent[policy]": "Y",
"useragent[list]": "",
"useragent[ips]": "",
"useragent[casesensitive]": "N",
"useragent[active]": "N"
}'
response = http.request(request)
puts response.body
{
"result": "success",
"message": "Stream Created",
"stream": {
"monitoring_id": null,
"type": "timeshift",
"id": 72358,
"serviceid": 103,
"name": "5cc_ts/testt_test",
"codec": "h264",
"ingests": [
[],
null
],
"protocols": [
[
"HLS"
],
[
"HLS"
]
],
"parentid": 59180,
"server": "1",
"backup": "",
"dedicatedLTC": "0",
"hasAdvancedFeatures": "0",
"monitoring_triggers": null,
"draft": "0",
"disabled": "0",
"created_at": "2026-05-04 06:31:34",
"updated_at": "2026-05-04 06:31:34",
"lastseen_at": false,
"deleted": null,
"ingestsLock": 0,
"protocolsLock": 1,
"status": "Deploying",
"has": {
"rtmp": 0,
"rtsp": 0,
"hls": 1,
"dash": 0,
"rtmpauth": false
},
"parts": {
"pp": "5cc_ts",
"sn": "testt_test",
"full": "5cc_tstestt_test"
},
"parent": {
"id": 59180,
"name": "5cc/testt",
"codec": "h264",
"stype": "push",
"rtmpauth": "N"
},
"restream": {},
"timeshift": {
"shift": 2859,
"type": "stream"
},
"playbackurls": {
"scheme": "https",
"url_prefix": "https://stream-abc12-hls-live.stream.example.com",
"rtmp": "",
"rtsp": "",
"hlsManifest": "playlist_dvr.m3u8",
"dashManifest": "manifest_dvr.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": {
"baseQ": "?showcv=true&title=5cc_ts/testt_test",
"base": "https://cdn.example.com/player/hls/skin1//",
"hls": "https://cdn.example.com/player/hls/skin1//aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4?showcv=true&title=5cc_ts/testt_test",
"dash": "https://cdn.example.com/player/dash/skin1//aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4?showcv=true&title=5cc_ts/testt_test"
}
},
"tokenized": {
"scheme": "https",
"url_prefix": "https://stream-abc12-hls-live.stream.example.com",
"rtmp": "rtmp://rtmp.5centscdn.com:1935/",
"rtsp": "rtsp://rtsp.5centscdn.com:554/",
"hlsManifest": "playlist_dvr.m3u8",
"dashManifest": "manifest_dvr.mpd",
"hls": "https://hash-hls-live.5centscdn.com",
"dash": "https://hash-hls-live.5centscdn.com",
"players": {
"hostname": "cdn.example.com",
"flowplayer": {
"baseQ": "",
"base": "https://cdn.example.com/flowplayer/hls/",
"hls": "https://cdn.example.com/flowplayer/hls/aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4",
"dash": "https://cdn.example.com/flowplayer/dash/aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4"
},
"videojs": {
"baseQ": "",
"base": "https://cdn.example.com/videojs/hls/",
"hls": "https://cdn.example.com/videojs/hls/aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4",
"dash": "https://cdn.example.com/videojs/dash/aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4"
},
"own": {
"baseQ": "?showcv=true&title=5cc_ts/testt_test",
"base": "https://cdn.example.com/player/hls/skin1//",
"hls": "https://cdn.example.com/player/hls/skin1//aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4?showcv=true&title=5cc_ts/testt_test",
"dash": "https://cdn.example.com/player/dash/skin1//aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4?showcv=true&title=5cc_ts/testt_test"
}
},
"path": {
"hls": "/5cc_ts/testt_test/playlist_dvr.m3u8",
"dash": "/5cc_ts/testt_test/manifest_dvr.mpd"
},
"token": {
"hls": "md5=RnUk_h5B8m9A88_vVHuuKg&path=%2F5cc_ts%2Ftestt_test&expires=1777879906",
"dash": "md5=RnUk_h5B8m9A88_vVHuuKg&path=%2F5cc_ts%2Ftestt_test&expires=1777879906"
}
}
},
"platformsCount": 0,
"ssl_enabled": true,
"hash": "testt_test",
"securetoken": {
"enabled": "Y",
"policy": "D",
"keyip": "N",
"list": "32862cdb6276e19a",
"timeout": 3600,
"session": "0",
"ips": "",
"dirs": null,
"active": "Y"
},
"domainlock": {
"enabled": "Y",
"policy": "Y",
"list": "example.com,docs.example.com",
"ips": "",
"noreferer": "N",
"active": "Y"
},
"geoblock": {
"enabled": "Y",
"policy": "Y",
"list": [
""
],
"ips": "",
"active": "Y"
},
"ipaccess": {
"enabled": "Y",
"policy": "N",
"list": "",
"ips": "",
"active": "N"
},
"useragent": {
"enabled": "Y",
"policy": "Y",
"list": "",
"ips": "",
"casesensitive": "N",
"active": "N",
"listArr": [
""
]
},
"adInsertion": null,
"transcode": {
"ltc": 0,
"type": "mixed",
"enabled": false,
"isEditable": true
},
"platforms": [],
"messages": {}
},
"warnings": null,
"errors": null
}
/streams/timeshift/new
Target server for requests. Edit to use your own host.
API key (sent in header)
The media type of the request body
HTTP method override for this request. This endpoint accepts POST, but set this to PUT to perform an update operation.
Friendly name for this resource.
Video codec for the stream. Use h264 or h265.
List of output protocols. Values include HLS, RTMP, DASH, RTSP.
The delay duration in seconds for the timeshift stream.
Parent zone or push zone name to attach this stream to.
Enable or disable domain lock. Y means enabled, N means disabled.
Domain lock policy. Y means allow listed domains, N means deny.
Comma-separated list of domains for domain lock.
Comma-separated list of IP addresses for domain lock.
Whether to block referrer header. Y means blocked, N means allowed.
Active state of domain lock.
Enable or disable geo block. Y means enabled, N means disabled.
Geo block policy. Y means block listed countries, N means allow.
List of country codes to block or allow.
Comma-separated IP addresses for geo block.
Active state of geo block.
Enable or disable IP access control. Y means enabled, N means disabled.
IP access policy. Y means allow listed IPs, N means deny.
Comma-separated list of IPs for access control.
Additional IP addresses for access control.
Active state of IP access control.
Enable or disable NDVR. Y means enabled, N means disabled.
Number of days to retain NDVR content. Maximum 180.
Server ID for recording.
Enable or disable recording. Y means enabled, N means disabled.
Number of days to retain recordings. Maximum 90.
Enable or disable secure token. Y means enabled, N means disabled.
Secure token policy. D means dynamic, F means fixed.
Secure token key identifier.
Comma-separated IPs for secure token.
Whether token is bound to IP. Y means IP-bound, N means not bound.
Session limit. 0 means unlimited.
Token validity duration in seconds.
Active state of secure token.
Enable or disable user agent control. Y means enabled, N means disabled.
User agent policy. Y means allow listed agents, N means deny.
Comma-separated list of user agents.
Comma-separated IPs for user agent control.
Whether user agent matching is case sensitive. Y means case sensitive, N means not.
Active state of user agent control.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Provide your API key in the header.
Body
HTTP method override for this request. This endpoint accepts POST, but set this to PUT to perform an update operation.
PUTComma-separated list of domains for domain lock.
example.com,docs.example.comWhether to block referrer header. Y means blocked, N means allowed.
NEnable or disable IP access control. Y means enabled, N means disabled.
YEnable or disable secure token. Y means enabled, N means disabled.
YEnable or disable user agent control. Y means enabled, N means disabled.
YWhether user agent matching is case sensitive. Y means case sensitive, N means not.
NResponses
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 when the stream was last detected as active.
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.
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.
Unique numeric identifier.
Name of the stream.
Video codec used for the stream.
Whether RTMP publish authentication is required.
Restream platform configuration object.
Type identifier for this stream or object.
Playback URL set for all supported protocols and player types.
URL scheme used for playback.
Base CDN hostname URL used as a prefix for playback URLs.
RTMP playback or destination URL.
RTSP playback URL.
HLS manifest filename.
DASH manifest filename.
HLS playback or player iframe URL.
DASH playback or player iframe URL.
Embedded player iframe URL set for supported player types.
Flowplayer iframe URL information.
Query string appended to the player iframe URL.
Base player iframe URL without the stream path.
HLS playback or player iframe URL.
RTMP playback or destination URL.
RTSP playback URL.
Video.js player iframe URL information.
Query string appended to the player iframe URL.
Base player iframe URL without the stream path.
HLS playback or player iframe URL.
RTMP playback or destination URL.
RTSP playback URL.
Native stream player iframe URL information.
Query string appended to the player iframe URL.
Base player iframe URL without the stream path.
HLS playback or player iframe URL.
DASH playback or player iframe URL.
Tokenized playback URL configuration, or null if disabled.
URL scheme used for playback.
Base CDN hostname URL used as a prefix for playback URLs.
RTMP playback or destination URL.
RTSP playback URL.
HLS manifest filename.
DASH manifest filename.
HLS playback or player iframe URL.
DASH playback or player iframe URL.
Embedded player iframe URL set for supported player types.
CDN hostname used for playback.
Flowplayer iframe URL information.
Query string appended to the player iframe URL.
Base player iframe URL without the stream path.
HLS playback or player iframe URL.
DASH playback or player iframe URL.
Video.js player iframe URL information.
Query string appended to the player iframe URL.
Base player iframe URL without the stream path.
HLS playback or player iframe URL.
DASH playback or player iframe URL.
Native stream player iframe URL information.
Query string appended to the player iframe URL.
Base player iframe URL without the stream path.
HLS playback or player iframe URL.
DASH playback or player iframe URL.
HLS playback or player iframe URL.
DASH playback or player iframe URL.
HLS playback or player iframe URL.
DASH playback or player iframe URL.
Number of external restreaming platforms configured.
Whether HTTPS/SSL is enabled for playback.
Short hash or slug used in stream URLs.
Secure token URL signing configuration.
Enable or disable this feature.
Policy mode controlling allow/deny behavior.
Whether the token is bound to the viewer IP address.
Comma-separated list of allowed or blocked values.
Token expiry time in seconds.
Session-based token mode flag.
IP addresses associated with the access control policy.
URL directory paths restricted by this policy.
Whether this policy is currently enforced.
Domain lock (hotlink protection) 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 to allow playback requests with no Referer header.
Whether this policy is currently enforced.
Geoblocking 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.
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.
Ad insertion configuration for the stream, or null if not configured.
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.
Informational messages related to the stream state.
Non-fatal warnings returned with the response.
Errors returned with the response.