Overview
Set up Alibaba Cloud OSS for uploaded videos. Credentials are verified before saving.
Your API key for authentication
Request Body
OSS endpoint URL (e.g., https://oss-cn-hangzhou.aliyuncs.com)
Optional folder prefix for organizing uploads (e.g., downloads/2024/)
Base folder name for uploaded files. Defaults to videos if not specified. Set to a custom value to change the top-level folder where files are stored (e.g., downloads, media).
Response
Success confirmation message
Storage provider type: oss
The configured bucket name
The configured folder prefix (if provided)
Examples
curl -X POST "https://api.tornadoapi.io/user/oss" \
-H "x-api-key: sk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"endpoint": "https://oss-cn-hangzhou.aliyuncs.com",
"bucket": "tornado-downloads",
"access_key_id": "LTAI5tXXXXXXXXXXXXXX",
"access_key_secret": "XXXXXXXXXXXXXXXXXXXXXXXXXX"
}'
Success Response
{
"message" : "Alibaba OSS storage configured successfully" ,
"provider" : "oss" ,
"container_or_bucket" : "tornado-downloads"
}
Error Responses
400 Bad Request - Invalid Credentials
400 Bad Request - Bucket Not Found
401 Unauthorized
{
"error" : "Credential validation failed: AccessDenied"
}
OSS Endpoint Regions
Region Endpoint China (Hangzhou) https://oss-cn-hangzhou.aliyuncs.comChina (Shanghai) https://oss-cn-shanghai.aliyuncs.comChina (Beijing) https://oss-cn-beijing.aliyuncs.comSingapore https://oss-ap-southeast-1.aliyuncs.comUS West https://oss-us-west-1.aliyuncs.comGermany https://oss-eu-central-1.aliyuncs.com