POST
/
integration
/
upload
/
direct
curl -X POST "https://api-integration.ollang.com/integration/upload/direct" \
  -H "X-Api-Key: <your-api-key>" \
  -H "Content-Type: multipart/form-data" \
  -F "file=@/path/to/your/video.mp4" \
  -F "name=batman_returns" \
  -F "sourceLanguage=en"
{
  "projectId": "60b8d6f1e1b9b1d8c6c0d8e1"
}

Upload video files directly to the platform by calling this endpoint to process your videos for translation and transcription services.

curl -X POST "https://api-integration.ollang.com/integration/upload/direct" \
  -H "X-Api-Key: <your-api-key>" \
  -H "Content-Type: multipart/form-data" \
  -F "file=@/path/to/your/video.mp4" \
  -F "name=batman_returns" \
  -F "sourceLanguage=en"

Authorizations

This endpoint requires API key authentication. Include your API key in the request header:

  • Header name: X-Api-Key
  • Header value: Your API key from the Ollang dashboard
  • Format: X-Api-Key: your-api-key-here

You can obtain your API key from your Ollang dashboard.

Body Parameters

file
file
required

The video file to upload. Only MP4 format is supported. Maximum file size: 30GB.

name
string
required

Name of the file being uploaded. This will be used as the identifier for your uploaded content.

sourceLanguage
string
required

The source language of the video content. Use language codes such as ‘en’ for English, ‘tr’ for Turkish, etc.

notes
array

Array of order notes for additional instructions or information about the upload. Each note should be an object with:

  • details (string): Note content
  • timeStamp (string): Timestamp for the note

Example: [{"details": "Special instructions", "timeStamp": "2024-01-15T10:30:00Z"}]

Response

projectId
string

Unique identifier for the project associated with the uploaded file. Use this ID to track and manage your uploaded content.

{
  "projectId": "60b8d6f1e1b9b1d8c6c0d8e1"
}