Skip to main content
POST
Configure Azure Blob Storage

Overview

Set up Azure Blob Storage for uploaded videos. Authenticate with either an account key or a SAS token. Credentials are verified before saving.

Header Parameters

string
required
Your API key for authentication

Request Body

string
required
Azure Storage Account name
string
required
Blob container name
string
Storage Account access key (Base64 encoded). Required if sas_token is not provided.
string
SAS token for authentication. Required if account_key is not provided.
string
Optional folder prefix for organizing uploads (e.g., downloads/2024/)
string
default:"videos"
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).
Provide either account_key OR sas_token, not both. At least one must be provided.

Response

string
Success confirmation message
string
Storage provider type: blob
string
The configured container name
string
The configured folder prefix (if provided)

Examples

Success Response

Error Responses

Verification Process

When you submit storage configuration, Tornado:
  1. Validates that either account_key or sas_token is provided
  2. Creates a storage client with your credentials
  3. Attempts to upload a small test file (verify_credentials.txt)
  4. Deletes the test file
  5. If successful, saves the configuration encrypted

Required SAS Permissions

When using a SAS token, ensure these permissions are enabled:
  • Read (r) - For generating download URLs
  • Write (w) - For uploading files
  • Delete (d) - For cleanup operations
  • List (l) - For validation