Get file
get_fileFetch a file by ID to receive fresh signed URLs for its thumbnail, preview, and download renditions. Set wait:true to poll until processing finishes after uploading bytes.
Instructions
Fetch a file by id with freshly hydrated (non-expired) signed URLs for its thumbnail, preview, and download renditions. Set wait: true to poll until the file finishes processing — use this right after PUTting bytes to a create_file_upload URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | When true, poll until the file finishes processing and a rendition is ready. Defaults to false (a single fetch). | |
| fileId | Yes | File id (vg_file_...). | |
| timeoutMs | No | Maximum time to wait for processing before giving up, in milliseconds. | |
| pollIntervalMs | No | How often to poll while waiting, in milliseconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | File type once processing has determined it. | |
| scope | No | File scope. | |
| fileId | Yes | File id (vg_file_...). | |
| hlsSource | No | ||
| description | No | File description when analyzed. | |
| displayName | No | Display name for the file. | |
| downloadUrl | No | Signed download URL when ready. | |
| publicHlsUrl | No | ||
| thumbnailUrl | No | Signed thumbnail URL when available. | |
| previewSource | No | ||
| downloadSource | No | ||
| sourceToolType | No | ||
| transcriptText | No | Plain transcript text when available. | |
| durationSeconds | No | Duration in seconds for video/audio; null for images. | |
| thumbnailSource | No | ||
| publicPlaybackId | No | ||
| downloadUrlExpiresAt | No | Unix expiry for downloadUrl. | |
| sourceToolExecutionId | No | ||
| thumbnailUrlExpiresAt | No | Unix expiry for thumbnailUrl. | |
| isPublicPreviewEnabled | No |