Assets
Assets are the individual pieces of content that you index and search in Mixpeek. They can be text, images, videos, or any other supported content type. Each asset is processed to extract features and make it searchable.
Understanding Assets
Key Concepts
- Content Types: Different types of media content
- Feature Extraction: Automated processing and analysis
- Metadata: Additional information about assets
- Lifecycle Management: Asset creation to deletion
Asset Types
Supported Content
-
Text
- Documents
- Articles
- Product descriptions
- Social media posts
-
Images
- Product photos
- User uploads
- Marketing materials
- Artwork
-
Videos
- Product demos
- Tutorial content
- Marketing videos
- User-generated content
Best Practices
Asset Organization
-
Metadata Structure
- Use consistent schemas
- Include relevant information
- Keep metadata current
- Enable efficient filtering
-
Content Management
- Validate content quality
- Use appropriate formats
- Optimize file sizes
- Maintain content freshness
Performance Optimization
- Batch Processing: Process multiple assets together
- Efficient Updates: Use partial updates when possible
- Caching Strategy: Cache frequently accessed assets
- Resource Management: Monitor storage and processing
Asset URL Management
When retrieving assets, Mixpeek provides secure, temporary access through presigned URLs. This is controlled through the return_url
parameter:
- Presigned URLs: Temporary, secure URLs that grant time-limited access to assets
- Access Control: Ensures assets are only accessible to authorized users
- Security: URLs automatically expire after a set period
- Performance: Enables direct asset downloads from storage without proxy routing
return_url
is a parameter available in all /assets
and /features
retrieval endpoints.
Example Response
When return_url: true
is set, the API will return a presigned URL that looks like this:
Let’s break down the URL components:
-
Base URL:
https://mixpeek-api.s3.amazonaws.com/assets/...
- Points to the storage location of the asset
-
Authentication Parameters:
X-Amz-Algorithm
: Specifies the signing algorithm (AWS4-HMAC-SHA256)X-Amz-Credential
: AWS credentials used for signingX-Amz-Date
: Timestamp when the URL was generatedX-Amz-Expires
: URL expiration time in seconds (3600 = 1 hour)X-Amz-SignedHeaders
: Headers included in signature calculationX-Amz-Signature
: Cryptographic signature ensuring URL authenticity
This URL will be valid for the specified expiration time (1 hour in this example) and can be used to directly download or access the asset.
Benefits
-
Security
- Controlled access to sensitive assets
- No need to expose permanent storage URLs
- Automatic expiration reduces security risks
-
Performance
- Direct downloads from storage providers
- Reduced server load
- Optimized for large files and media
-
Flexibility
- Time-limited access for temporary sharing
- Works with various storage backends
- Supports both public and private assets
Was this page helpful?