Stream ManagementCreate Multistream Stream

Create Multistream Stream

Create new Restream (push or pull type)

curl -X POST "https://api.5centscdn.com/v2/streams/publish/new" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "_METHOD": "PUT",
  "name": "Testt/final",
  "codec": "h264",
  "type": "push",
  "mode": "hls",
  "server": "11,211",
  "protocols": [
    "HLS"
  ],
  "urls": [
    "rtmp://rtmp.5centscdn.com:1935/"
  ],
  "audiofix": "N",
  "domainlock[enabled]": "Y",
  "domainlock[policy]": "Y",
  "domainlock[list]": "example.com,docs.example.com",
  "domainlock[ips]": "",
  "domainlock[noreferer]": "N",
  "geoblock[enabled]": "Y",
  "geoblock[policy]": "Y",
  "geoblock[list]": [],
  "geoblock[ips]": "",
  "ipaccess[enabled]": "Y",
  "ipaccess[policy]": "N",
  "ipaccess[list]": "",
  "ipaccess[ips]": "",
  "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,
  "useragent[enabled]": "Y",
  "useragent[policy]": "Y",
  "useragent[list]": "",
  "useragent[ips]": "",
  "useragent[casesensitive]": "N"
}'
{
  "result": "success",
  "message": "Stream Created",
  "stream": {
    "monitoring_id": null,
    "type": "publish",
    "id": 72440,
    "serviceid": 103,
    "name": "Testt/final",
    "codec": "h264",
    "ingests": [
      [],
      null
    ],
    "protocols": [
      [
        "HLS"
      ],
      [
        "HLS"
      ]
    ],
    "parentid": null,
    "server": "11,211",
    "backup": "",
    "dedicatedLTC": "0",
    "hasAdvancedFeatures": "0",
    "monitoring_triggers": null,
    "draft": "0",
    "disabled": "0",
    "created_at": "2026-05-06 06:18:55",
    "updated_at": "2026-05-06 06:18:55",
    "lastseen_at": false,
    "deleted": null,
    "ingestsLock": 0,
    "protocolsLock": 1,
    "status": "Deploying",
    "has": {
      "rtmp": 1,
      "rtsp": 0,
      "hls": 0,
      "dash": 0,
      "rtmpauth": false
    },
    "fms": {
      "server": {
        "country": "North America",
        "meta": {
          "fmsUrl": "rtmp://fms-01-01.5centscdn.com"
        }
      }
    },
    "parts": {
      "pp": "Testt",
      "sn": "final",
      "full": "Testtfinal"
    },
    "restream": {},
    "platformsCount": 0,
    "ssl_enabled": true,
    "hash": "7a68164e7531e26f728a406b45dbbfc6.sdp",
    "publish": {
      "id": 72440,
      "type": "push",
      "mode": "hls",
      "urls": null,
      "audiofix": "N"
    },
    "ipaccess": {
      "enabled": "Y",
      "policy": "N",
      "list": "",
      "ips": "",
      "active": "N"
    },
    "useragent": {
      "enabled": "Y",
      "policy": "Y",
      "list": "",
      "ips": "",
      "casesensitive": "N",
      "active": "N",
      "listArr": [
        ""
      ]
    },
    "rtmpauth": {
      "password": "",
      "active": "N"
    },
    "transcode": {
      "ltc": 0,
      "type": "mixed",
      "enabled": false,
      "isEditable": true
    },
    "platforms": [],
    "messages": {
      "warning": [
        "No Platforms Created. <a id="addplatform2" style="cursor: pointer;">Click here to Add Platform</a>"
      ]
    },
    "adInsertion": null
  },
  "warnings": null,
  "errors": null
}
POST
/streams/publish/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
Required

Friendly name for this resource.

codecstring
Required

Video codec for the stream. Use h264 or h265.

typestring
Required

Type identifier for this resource.

modestring
Required

Operation mode for this request. Common values: save, delete, clear, replace.

serverstring

Server ID(s) for the stream. Use comma-separated values for multiple servers.

protocolsarray

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

urlsarray

Source pull URL(s) for restream or pull-type streams.

audiofixstring

Applicable for pull type streams only. Fixes audio sync issues in the pulled source. Y means enabled, N means disabled.

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 only.

domainlock[list]string

Comma-separated list of allowed domains.

domainlock[ips]string

Comma-separated IPs for domain lock.

domainlock[noreferer]string

Whether to block requests with no referrer header. Y means blocked.

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.

geoblock[list]array

List of ISO country codes to block or allow.

geoblock[ips]string

Comma-separated IPs for 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, N means deny.

ipaccess[list]string

Comma-separated list of IPs for access control.

ipaccess[ips]string

Additional IP entries for access control.

ndvr[enabled]string

Enable or disable network DVR. Y means enabled, N means disabled.

ndvr[retention]integer

DVR retention period in hours.

record[server]integer

Recording server ID to use.

record[enabled]string

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

record[retention]integer

Recording retention period in days.

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 to bind the token to the requester IP. Y means enabled, N means disabled.

securetoken[session]string

Session limit. 0 means unlimited.

securetoken[timeout]integer

Token validity duration in seconds.

useragent[enabled]string

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

useragent[policy]string

User agent policy. Y means allow listed agents only.

useragent[list]string

Comma-separated list of allowed user agents.

useragent[ips]string

IPs for user agent filter.

useragent[casesensitive]string

Whether user agent matching is case-sensitive. Y means enabled, N means disabled.

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
Required

Friendly name for this resource.

Example:
Testt/final
codecstring
Required

Video codec for the stream. Use h264 or h265.

Example:
h264
typestring
Required

Type identifier for this resource.

Example:
push
modestring
Required

Operation mode for this request. Common values: save, delete, clear, replace.

Example:
hls
serverstring

Server ID(s) for the stream. Use comma-separated values for multiple servers.

Example:
11,211
protocolsarray

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

Example:
["HLS"]
urlsarray

Source pull URL(s) for restream or pull-type streams.

Example:
["rtmp://rtmp.5centscdn.com:1935/"]
audiofixstring

Applicable for pull type streams only. Fixes audio sync issues in the pulled source. Y means enabled, N means disabled.

Example:
N
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 only.

Example:
Y
domainlock[list]string

Comma-separated list of allowed domains.

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

Comma-separated IPs for domain lock.

Example:
domainlock[noreferer]string

Whether to block requests with no referrer header. Y means blocked.

Example:
N
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.

Example:
Y
geoblock[list]array

List of ISO country codes to block or allow.

Example:
[]
geoblock[ips]string

Comma-separated IPs for geo block.

Example:
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, N means deny.

Example:
N
ipaccess[list]string

Comma-separated list of IPs for access control.

Example:
ipaccess[ips]string

Additional IP entries for access control.

Example:
ndvr[enabled]string

Enable or disable network DVR. Y means enabled, N means disabled.

Example:
Y
ndvr[retention]integer

DVR retention period in hours.

Example:
5
record[server]integer

Recording server ID to use.

Example:
1
record[enabled]string

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

Example:
Y
record[retention]integer

Recording retention period in days.

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 to bind the token to the requester IP. Y means enabled, N means disabled.

Example:
N
securetoken[session]string

Session limit. 0 means unlimited.

Example:
0
securetoken[timeout]integer

Token validity duration in seconds.

Example:
3600
useragent[enabled]string

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

Example:
Y
useragent[policy]string

User agent policy. Y means allow listed agents only.

Example:
Y
useragent[list]string

Comma-separated list of allowed user agents.

Example:
useragent[ips]string

IPs for user agent filter.

Example:
useragent[casesensitive]string

Whether user agent matching is case-sensitive. Y means enabled, N means disabled.

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.