Restreams
List a station's restreams
GET
https://api.tunio.ai/ v1/ stream/ {stream_id}/ restreamsThe station's restreams to external platforms (YouTube, Twitch, Kick, Facebook, VK, Rutube, Telegram, any RTMP server) with their live state: status is inactive, starting or running. A failing restream keeps status starting and carries error_code (target_rejected: the platform refuses the stream, usually a wrong or inactive stream key; target_unreachable: wrong server URL; audio_unavailable; video_unavailable; unknown), failed_attempts and last_running_at. The stream key is never returned, only key_hint (its last 4 characters). limits tells how many restreams the plan allows and the highest background resolution.
路径参数
| 名称 | 类型 | 说明 |
|---|---|---|
| stream_idRequired | string | Stream UUID |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| items | array | The station's restreams. |
| [item]Required | object | - |
| limits | object | What the station owner's plan allows; null when the limits could not be loaded. |
| max_resolution | string | Highest background resolution a restream may send: 720, 1080, 2k or 4k. |
| max_restreams | integer | Number of restreams the plan allows across all the account's stations. |
| unlimited | boolean | True when the restream count is not limited. |
| used | integer | Number of restreams the account has across all its stations. |
| success | boolean | Always true. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |