DownloadAuthInput type configures authentication for downloading media files during audio upload. This allows you to upload files that are hosted on private servers or require authentication.
Fields
The authentication method to use when downloading the media file. Must be one of:
none- No authentication (publicly accessible URL)bearer_token- Bearer token authenticationbasic_auth- HTTP Basic authentication
Bearer token configuration. Required when
type is bearer_token, must not be provided for other types.See BearerTokenAuthInput for the complete schema definition.Basic authentication configuration. Required when
type is basic_auth, must not be provided for other types.See BasicAuthInput for the complete schema definition.Validation Rules
TheDownloadAuthInput type enforces mutual exclusivity between authentication methods:
- When
typeisbearer_token, only thebearerfield should be provided - When
typeisbasic_auth, only thebasicfield should be provided - When
typeisnone, neitherbearernorbasicshould be provided
Examples
Bearer Token Authentication
Basic Authentication
No Authentication (Default)
When the media file is publicly accessible, you can either omit thedownload_auth field entirely or explicitly set it to none:
Use Cases
Private Cloud Storage
Use bearer token authentication for files stored in private cloud storage with token-based access:Protected Web Servers
Use basic authentication for files hosted on web servers with HTTP Basic Auth:Related Types
- BearerTokenAuthInput - Bearer token configuration
- BasicAuthInput - Basic auth configuration
- DownloadAuthType - Authentication type enum
- AudioUploadInput - Parent input type