Skip to main content
Back to API List The API uploads a file to the server for seamless usage in multi modal nodes and across the Platform. The API returns a unique 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)
To use the API, create an API key. The following file upload modes are supported:

Mode 1: Upload a Single File As Is

This method directly calls the endpoint and returns the fileId 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:
  1. Start the file upload session.
  2. Upload in chunks, and
  3. Merge the chunks to complete the process.

Start Session API

This API starts the upload process, returning a session 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. The session 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 the session Id from the Start Session API. It returns the file URL and file ID. Missing chunk numbers are identified after the merge.

Path Parameters

Sample Request

Body Parameters

No parameters are passed.

Sample Response

Response Parameters