Start Stream Forwarding
POST
/manage/api/v1.0/stream-converters
Request
Header Params
X-Organization-Key
string
required
Default:
{{organization_key}}
Body Params application/json
region
string
required
converter_name
string
required
sn
string | null
required
camera
string
required
video
string
required
idletimeout
integer
optional
video_quality
string
optional
bypass_option
object
optional
url
string
RTMP address (not concatenated)
rtmp_url
string
optional
If rtmp_url is not filled in, RTMP Server must be configured on the organization management page of FlightHub 2, otherwise the interface will report an error.
Example
{
"region": "en",
"converter_name": "test",
"sn": "6QCD0000000000",
"camera": "165-0-7",
"video": "normal-0",
"idle_timeout": 500,
"video_quality": 0,
"bypass_option": {
"url": "rtmp://xx.xx.xx"
},
"rtmp_url": "rtmp://xx.xx.xx"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/manage/api/v1.0/stream-converters' \
--header 'X-Organization-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"region": "en",
"converter_name": "test",
"sn": "6QCD0000000000",
"camera": "165-0-7",
"video": "normal-0",
"idle_timeout": 500,
"video_quality": 0,
"bypass_option": {
"url": "rtmp://xx.xx.xx"
},
"rtmp_url": "rtmp://xx.xx.xx"
}'
Responses
🟢200成功
application/json
Body
code
integer
required
message
string
required
data
object
required
code
integer
required
message
string
required
data
object
required
converter_id
string
required
create_ts
integer
required
update_ts
integer
required
converter_state
string
required
Example
{
"code": 0,
"message": "OK",
"data": {
"code": 0,
"message": "OK",
"data": {
"converter_id": "160FDCB4E94171AB9F7A86A5F5B1C990",
"create_ts": 1704167612,
"update_ts": 1704167612,
"converter_state": "running"
},
"converter_id": "160FDCB4E94171AB9F7A86A5F5B1C990",
"create_ts": 1704167612,
"update_ts": 1704167612,
"converter_state": "running"
}
}
🟠401未授权
Modified at 2025-03-03 09:28:03