Endpoint
Overview
Retrieve the actual media file content. This endpoint acts as a proxy to the underlying blob storage, hiding the storage URLs from clients.This is a public endpoint - no authentication is required. This allows media URLs to be used directly in
<img>, <video>, and <audio> tags without needing to pass credentials./media/file/{id}- Returns the main file (user_media video/image/audio, or social_audio’s audio file)/media/file/{id}/preview- Returns the preview/thumbnail image (for videos or social_audio cover)/media/file/{id}/audio- Returns the social_audio audio file (same as no suffix for social_audio)
Path Parameters
The media ID
Optional subpath:
preview for cover image, audio for audio file (social_audio only)Response
Returns the raw file content with appropriateContent-Type header.
Content Types:
- Videos:
video/mp4 - Images:
image/jpeg,image/png, etc. - Audio:
audio/mpeg
Cache-Control: public, max-age=31536000, immutable
