REST API ReferenceEndpointsFiles

Create file upload

Create a new file and receive a pre-signed upload URL. PUT the file bytes to the returned URL, then poll GET /v1/files/{fileId} until the file is ready.

Authentication

AuthorizationBearer
API key from [app.videogen.io/developers](https://app.videogen.io/developers). The full key is only shown once when you create it.

Request

This endpoint expects an object.
displayNamestringRequired
Display name for the uploaded file.
typeenumOptional

The type of file to upload. Optional; when omitted, the type is inferred after upload processing completes.

Allowed values:
isTemporarybooleanOptionalDefaults to false

When true, the file is temporary. Temporary files are guaranteed to be available for 24 hours, after which they may be archived at any time. Temporary files are not analyzed (no description, transcript, or embedding will be generated), so they will not appear in search results. Defaults to false.

Response

Upload instructions
fileIdstring

The file id to use in subsequent API calls (e.g. vg_file_...).

uploadUrlstring

Pre-signed URL. PUT the raw file bytes to this URL to complete the upload.