Archive file
Authentication
Path parameters
The file id (e.g. vg_file_...).
Response
File id (e.g. vg_file_...).
File scope.
GLOBAL: user-uploaded or standalone generated files that persist indefinitely.PROJECT: project-specific files (e.g. text-to-speech clips in a generated project).EXPORT: project exports.TEMPORARY: short-lived files guaranteed to be available for 24 hours, after which they may be archived at any time. Not analyzed (no description, transcript, or embedding).ENTITY: files attached to a reusable entity (e.g. a voice sample for an actor), shared across your team.
Preview rendition source (720p for video, resized for images). Populated after hydration.
Highest-quality downloadable rendition. Populated after hydration.
Private HLS streaming source. Populated for video and audio files once streaming renditions are ready. Uses a signed token; treat like other signed sources.
Whether public preview is enabled for this file. When true, staticPublicPreviewSource is populated for all file types. For video and audio, publicHlsUrl and publicPlaybackId are also populated once embed streaming is ready.
Permanent public URL for the file’s highest-quality rendition. Populated when isPublicPreviewEnabled is true. Does not expire (expiresAt is null). Use for direct links to images, downloads, or any file type. For embedded video or audio players, prefer publicPlaybackId.
Public HLS streaming URL for video and audio. Only present when isPublicPreviewEnabled is true and embed streaming is ready. Prefer publicPlaybackId with @videogen/player for embeds.
Encoded public playback id (e.g. vg_play_...) for video and audio embeds. Pass this to @videogen/player or @videogen/player-react. Only present when isPublicPreviewEnabled is true and embed streaming is ready. For a permanent direct file URL (any type), use staticPublicPreviewSource instead.
Tool type that generated this file (e.g. GENERATE_IMAGE, TEXT_TO_SPEECH). Only present when the file was created by a tool execution.
Execution id of the tool call that generated this file (e.g. vg_tool_...). Only present when the file was created by a tool execution.
Background analysis state for the file (used to populate description, transcript, durationSeconds, and the search embedding). Omitted when the file was returned via a path that does not check analysis progress (e.g. tool-result inline files and webhook payloads).