Skip to main content
View as Markdown

Raw Serve URL — Direct File Access - Content Management

Raw Serve URL — Direct File Access​

The raw URL serves the original source file for any entry type — documents, data entries, images, SVGs, videos, or audio. Unlike playManifest (which returns adaptive streaming manifests) or the thumbnail API (which returns transformed images), raw returns the file exactly as uploaded.

URL pattern:

https://cdnapisec.kaltura.com/p/\{PARTNER_ID\}/raw/entry_id/\{ENTRY_ID\}/{param}/{value}/...

Parameters​

ParameterTypeDescription
direct_serveboolWhen 1/true, serves inline (no Content-Disposition download prompt)
forceproxyboolWhen 1/true, proxies the file through the server instead of redirecting
file_namestringSets the Content-Disposition filename for downloads
formatstringFile extension to select a specific flavor (e.g., mp4, mov)
typestringSet to download for format-specific download
versionstringData version (for data entries)
ksstringKaltura Session for access-controlled entries
referrerstringBase64-encoded referrer for domain restrictions

Behavior by Entry Type​

Entry TypeBehavior
ImageServes the original uploaded image file
Video/AudioServes original source flavor, falls back to best web-playable flavor
DocumentServes document file with Access-Control-Allow-Origin: *
DataServes the data file, redirects if on remote storage

Examples​

# Serve an SVG inline in the browser
https://cdnapisec.kaltura.com/p/$KALTURA_PARTNER_ID/raw/entry_id/$KALTURA_ENTRY_ID/direct_serve/1/forceproxy/true/logo.svg

# Serve a PDF (prompts download — no direct_serve)
https://cdnapisec.kaltura.com/p/$KALTURA_PARTNER_ID/raw/entry_id/$KALTURA_ENTRY_ID/forceproxy/true/report.pdf

# Serve original source video inline (native browser player)
https://cdnapisec.kaltura.com/p/$KALTURA_PARTNER_ID/raw/entry_id/$KALTURA_ENTRY_ID/direct_serve/1/forceproxy/true/video.mp4

# Access-controlled entry (append KS)
https://cdnapisec.kaltura.com/p/$KALTURA_PARTNER_ID/raw/entry_id/$KALTURA_ENTRY_ID/ks/$KALTURA_KS/direct_serve/1/forceproxy/true/file.zip

When to Use Raw vs Other Methods​

MethodUse Case
rawOriginal uploaded file (SVGs, source video, documents, data files, original images)
playManifestAdaptive video/audio playback (HLS, DASH). Returns transcoded renditions, not source file
downloadLike raw but with additional flavor selection and access control context
Thumbnail APIImages when you need resizing, cropping, format conversion, or video frame extraction