POST /api/channel/github.com/QuantumNous/new-api/controller.AddChannel。web_vue。controller-confirmed-channel-sensitive。字段为动态上游数据或回调负载时,文档会明确标记,不能补造 Schema。x-debug 里的占位符;示例不含真实密码、API Key、签名、Cookie 或 Provider 密钥。Authorization: Bearer ********************{
"mode": "single",
"multi_key_mode": "random",
"batch_add_set_key_prefix_2_name": false,
"channel": {
"type": 1,
"key": "<redacted-provider-key>",
"name": "debug-openai",
"models": "gpt-example",
"group": "default",
"other": "{}",
"settings": "{}"
}
}curl --location 'http://api-dev.opensosen.cn/api/channel/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"mode": "single",
"multi_key_mode": "random",
"batch_add_set_key_prefix_2_name": false,
"channel": {
"type": 1,
"key": "<redacted-provider-key>",
"name": "debug-openai",
"models": "gpt-example",
"group": "default",
"other": "{}",
"settings": "{}"
}
}'{
"success": true,
"message": ""
}