Available in Classic and VPC
Get the details of a re-stream channel.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /api/v2/re-stream/channels/{channelId} |
Request headers
For information about the headers common to all Live Station APIs, see Live Station request headers.
Request path parameters
You can use the following path parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
channelId |
String | Required | Channel ID
|
Request example
The request example is as follows:
curl --location --request GET 'https://livestation.apigw.ntruss.com/api/v2/re-stream/channels/ls-20250821******-GHiLB' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--header 'x-ncp-region_code: KR'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
content |
Object | - | Channel information |
content.channelId |
String | - | Channel ID |
content.channelName |
String | - | Channel name |
content.instanceNo |
Integer | - | Channel instance number |
content.channelStatus |
String | - | Channel status
|
content.streamKey |
String | - | Stream key |
content.publishUrl |
String | - | Default transmission URL |
content.globalPublishUrl |
String | - | Overseas streaming URL |
content.planType |
String | - | Pricing plan type
|
content.createdTime |
Integer | - | Channel creation date and time (millisecond)
|
content.restream |
Array | - | Re-stream platform information: restream |
content.platformCount |
Integer | - | Re-stream platform count |
content.totalPublishSeconds |
Integer | - | Channel usage time (second) |
content.alertOn |
Boolean | - | Event notification settings
|
content.isPublishing |
Boolean | - | Streaming status
|
content.alertOptions |
Object | - | Set event notifications. |
content.alertOptions.alertChangeStatus |
Boolean | - | Re-stream channel status change notification application
|
content.alertOptions.alertVodUploadFail |
Boolean | - | Recording file upload failure notification application
|
content.alertOptions.alertReStreamFail |
Boolean | - | Re-stream relay failure notification application
|
content.alertOptions.reStreamFailThreshold |
Integer | - | Notification occurrence condition (base count)
|
content.alertOptions.alertStreamFailOver |
Boolean | - | Main stream switch notification application
|
content.callbackEndpoint |
String | - | Callback endpoint URL
|
content.envType |
String | - | Channel type
|
restream
The following describes restream
.
Field | Type | Required | Description |
---|---|---|---|
id |
String | - | RTMP authentication ID
|
rtmpUrl |
String | - | Re-stream platform RTMP URL |
streamKey |
String | - | Re-stream platform stream key |
password |
String | - | RTMP authentication password
|
targetName |
String | - | Re-stream platform name |
Response status codes
For information about the HTTP status codes common to all Live Station APIs, see Live Station response status codes.
Response example
The response example is as follows:
{
"content": {
"channelId": "ls-20250821******-GHiLB",
"channelName": "channel000",
"instanceNo": 1083*****,
"channelStatus": "READY",
"streamKey": "1uxvnw2z6bxqqy******************",
"publishUrl": "rtmp://***********.video.media.ntruss.com:8080/relay",
"globalPublishUrl": "rtmp://***************.video.media.ntruss.com:8080/relay",
"planType": "STANDARD",
"createdTime": 1755757259000,
"restream": [
{
"rtmpUrl": "rtmp://x.rtmp.youtube.com/live2",
"streamKey": "****-****-****-****-****",
"targetName": "YOUTUBE"
}
],
"platformCount": 1,
"totalPublishSeconds": 177,
"recentPublishTime": 1755845515000,
"alertOn": true,
"isPublishing": false,
"alertOptions": {
"alertChangeStatus": true,
"alertVodUploadFail": false,
"alertReStreamFail": true,
"reStreamFailThreshold": 1,
"alertStreamFailOver": false
},
"callbackEndpoint": "https://www.example.com",
"envType": "REAL"
}
}