file URL and file ID for further action on the file.
We support the following file extensions:
- M4a
- Mp3
- Webm
- Mp4
- Mpga
- Wav
- Mpeg
- PNG (.png)
- JPEG (.jpeg and .jpg)
- WEBP (.webp)
- GIF (.gif)
- Mode 1 - Upload a single file as is: Use this mode if your file is smaller than 25 MB.
- Mode 2 - Upload a file in chunks: Use this mode if your file is larger than 25 MB. Ensure you start the session for chunk uploads before proceeding.
Mode 1: Upload a Single File As Is
This method directly calls the endpoint and returns thefileId and fileURL in the response.
Path Parameters
Sample Request
Body Parameters
Sample Response
Response Parameters
Mode 2: Upload a File in Chunks
This method requires the following three APIs to upload a large file:Start Session API
This API starts the upload process, returning asession ID. The file is split into chunks linked to this ID, which are then merged and uploaded through other APIs.
Path Parameters
Sample Request
Body Parameters
Sample Response
Response Parameters
Chunk Upload API
The API uploads the file in multiple chunks. Thesession ID from the Start Session API must be used in this step.
Path Parameters
Sample Request
Body Parameters
Sample Response
Response Parameters
Complete The Process
This API merges the uploaded chunks and finalizes the process using thesession Id from the Start Session API. It returns the file URL and file ID. Missing chunk numbers are identified after the merge.