Stream InfoCreate Delayed Stream

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"
}'
{
  "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
}
POST
/streams/timeshift/new
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
_METHODstring
Required

HTTP method override for this request. This endpoint accepts POST, but set this to PUT to perform an update operation.

namestring

Friendly name for this resource.

codecstring

Video codec for the stream. Use h264 or h265.

protocolsarray

List of output protocols. Values include HLS, RTMP, DASH, RTSP.

timeshiftinteger
Required

The delay duration in seconds for the timeshift stream.

parentinteger
Required

Parent zone or push zone name to attach this stream to.

domainlock[enabled]string

Enable or disable domain lock. Y means enabled, N means disabled.

domainlock[policy]string

Domain lock policy. Y means allow listed domains, N means deny.

domainlock[list]string

Comma-separated list of domains for domain lock.

domainlock[ips]string

Comma-separated list of IP addresses for domain lock.

domainlock[noreferer]string

Whether to block referrer header. Y means blocked, N means allowed.

domainlock[active]string

Active state of domain lock.

geoblock[enabled]string

Enable or disable geo block. Y means enabled, N means disabled.

geoblock[policy]string

Geo block policy. Y means block listed countries, N means allow.

geoblock[list]array

List of country codes to block or allow.

geoblock[ips]string

Comma-separated IP addresses for geo block.

geoblock[active]string

Active state of geo block.

ipaccess[enabled]string

Enable or disable IP access control. Y means enabled, N means disabled.

ipaccess[policy]string

IP access policy. Y means allow listed IPs, N means deny.

ipaccess[list]string

Comma-separated list of IPs for access control.

ipaccess[ips]string

Additional IP addresses for access control.

ipaccess[active]string

Active state of IP access control.

ndvr[enabled]string

Enable or disable NDVR. Y means enabled, N means disabled.

ndvr[retention]integer

Number of days to retain NDVR content. Maximum 180.

Max: 180
record[server]integer

Server ID for recording.

record[enabled]string

Enable or disable recording. Y means enabled, N means disabled.

record[retention]integer

Number of days to retain recordings. Maximum 90.

Max: 90
securetoken[enabled]string

Enable or disable secure token. Y means enabled, N means disabled.

securetoken[policy]string

Secure token policy. D means dynamic, F means fixed.

securetoken[list]string

Secure token key identifier.

securetoken[ips]string

Comma-separated IPs for secure token.

securetoken[keyip]string

Whether token is bound to IP. Y means IP-bound, N means not bound.

securetoken[session]string

Session limit. 0 means unlimited.

securetoken[timeout]integer

Token validity duration in seconds.

securetoken[active]string

Active state of secure token.

useragent[enabled]string

Enable or disable user agent control. Y means enabled, N means disabled.

useragent[policy]string

User agent policy. Y means allow listed agents, N means deny.

useragent[list]string

Comma-separated list of user agents.

useragent[ips]string

Comma-separated IPs for user agent control.

useragent[casesensitive]string

Whether user agent matching is case sensitive. Y means case sensitive, N means not.

useragent[active]string

Active state of user agent control.

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.

Body

application/json
_METHODstring
Required

HTTP method override for this request. This endpoint accepts POST, but set this to PUT to perform an update operation.

Example:
PUT
namestring

Friendly name for this resource.

Example:
test
codecstring

Video codec for the stream. Use h264 or h265.

Example:
protocolsarray

List of output protocols. Values include HLS, RTMP, DASH, RTSP.

Example:
["HLS"]
timeshiftinteger
Required

The delay duration in seconds for the timeshift stream.

Example:
2859
parentinteger
Required

Parent zone or push zone name to attach this stream to.

Example:
59180
domainlock[enabled]string

Enable or disable domain lock. Y means enabled, N means disabled.

Example:
Y
domainlock[policy]string

Domain lock policy. Y means allow listed domains, N means deny.

Example:
Y
domainlock[list]string

Comma-separated list of domains for domain lock.

Example:
example.com,docs.example.com
domainlock[ips]string

Comma-separated list of IP addresses for domain lock.

Example:
domainlock[noreferer]string

Whether to block referrer header. Y means blocked, N means allowed.

Example:
N
domainlock[active]string

Active state of domain lock.

Example:
Y
geoblock[enabled]string

Enable or disable geo block. Y means enabled, N means disabled.

Example:
Y
geoblock[policy]string

Geo block policy. Y means block listed countries, N means allow.

Example:
Y
geoblock[list]array

List of country codes to block or allow.

Example:
[]
geoblock[ips]string

Comma-separated IP addresses for geo block.

Example:
geoblock[active]string

Active state of geo block.

Example:
N
ipaccess[enabled]string

Enable or disable IP access control. Y means enabled, N means disabled.

Example:
Y
ipaccess[policy]string

IP access policy. Y means allow listed IPs, N means deny.

Example:
N
ipaccess[list]string

Comma-separated list of IPs for access control.

Example:
ipaccess[ips]string

Additional IP addresses for access control.

Example:
ipaccess[active]string

Active state of IP access control.

Example:
N
ndvr[enabled]string

Enable or disable NDVR. Y means enabled, N means disabled.

Example:
Y
ndvr[retention]integer

Number of days to retain NDVR content. Maximum 180.

Example:
5
record[server]integer

Server ID for recording.

Example:
1
record[enabled]string

Enable or disable recording. Y means enabled, N means disabled.

Example:
Y
record[retention]integer

Number of days to retain recordings. Maximum 90.

Example:
3
securetoken[enabled]string

Enable or disable secure token. Y means enabled, N means disabled.

Example:
Y
securetoken[policy]string

Secure token policy. D means dynamic, F means fixed.

Example:
D
securetoken[list]string

Secure token key identifier.

Example:
32862cdb6276e19a
securetoken[ips]string

Comma-separated IPs for secure token.

Example:
securetoken[keyip]string

Whether token is bound to IP. Y means IP-bound, N means not bound.

Example:
N
securetoken[session]string

Session limit. 0 means unlimited.

Example:
0
securetoken[timeout]integer

Token validity duration in seconds.

Example:
3600
securetoken[active]string

Active state of secure token.

Example:
Y
useragent[enabled]string

Enable or disable user agent control. Y means enabled, N means disabled.

Example:
Y
useragent[policy]string

User agent policy. Y means allow listed agents, N means deny.

Example:
Y
useragent[list]string

Comma-separated list of user agents.

Example:
useragent[ips]string

Comma-separated IPs for user agent control.

Example:
useragent[casesensitive]string

Whether user agent matching is case sensitive. Y means case sensitive, N means not.

Example:
N
useragent[active]string

Active state of user agent control.

Example:
N

Responses

resultstring

Status of the API response.

messagestring

Human-readable message describing the result.

streamobject

Stream object containing configuration and status details.

warningsstring

Non-fatal warnings returned with the response.

errorsstring

Errors returned with the response.