Upload a file for analysis
Local Files
Upload File
Upload a new audio or video file for analysis and start processing.
Supported formats:
- Video: mp4, webm, mov, avi, wmv, flv, mkv
- Audio: m4a, mp3, mpeg, mpga, wav
Processing options:
wait_for_completion=false(default): Returns immediately, processing happens in backgroundwait_for_completion=true: Waits for complete processing before returning response
POST
Upload a file for analysis
Upload audio or video files for transcription and analysis.
Overview
Upload your own audio or video files to VidNavigator for processing. The API supports a wide range of formats and provides flexible processing options.Supported Formats
Video Formats
mp4, webm, mov, avi, wmv, flv, mkv
Audio Formats
m4a, mp3, mpeg, mpga, wav
Processing Options
- Asynchronous (default): Returns immediately, processing happens in background
- Synchronous: Waits for complete processing before returning response
Billing
File processing consumestranscription_hour usage for speech-to-text. 1 credit covers 1 hour of video/audio transcription. Uploaded files also count toward your storage quota.
Namespace Assignment
You can assign the uploaded file to one or more namespaces by includingnamespace_ids in the form data. This accepts a comma-separated string or a JSON array (e.g., '["ns1","ns2"]'). See Namespaces for managing namespaces.
Example Usage
Response Examples
All response variants includedata.file_info with namespace_ids and namespaces reflecting the file’s namespace assignments.
201 - Asynchronous Response
201 - Asynchronous Response
When
wait_for_completion is false (the default), the API responds immediately with a file ID and a processing status.201 - Synchronous Response
201 - Synchronous Response
When
wait_for_completion is true, the API waits until processing is finished before responding.202 - Processing Timeout
202 - Processing Timeout
When
wait_for_completion is true and processing exceeds 15 minutes, the API returns a 202 Accepted response. Processing continues in the background — poll GET /file/{file_id} to check completion.Authorizations
API key authentication. Include your VidNavigator API key in the X-API-Key header.
Body
multipart/form-data
The audio or video file to upload
If 'true', waits until processing is complete before returning response
Available options:
true, false, 1, 0, yes, no, y, n Optional namespace IDs to assign the file to. Accepts a comma-separated string or a JSON array (e.g., '["ns1","ns2"]').

