Skip to content

Endpoint reference

POST /translate/file Requires Auth

Translate uploaded file (Synchronous/Asynchronous)

Upload and translate a file. Supports both sync and async modes. Use POST for direct file uploads instead of URLs. Supports bilingual mode to keep original text alongside translation.

This endpoint requires file uploads. Use the cURL command below or an API client (Postman, Insomnia, etc.) to test this endpoint. File uploads cannot be tested directly in the browser.

Endpoint URL

Use this marketplace URL in your integration.

Code Examples

Replace YOUR_API_TOKEN with your own key. Store it on your server.

curl -X POST \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{}' \
  'https://nexonapi.com/api/translation-of-documents-and-files/translate/file'

Parameters

File Upload Required

Example cURL Request
curl -X POST \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{}' \
  'https://nexonapi.com/api/translation-of-documents-and-files/translate/file'
frontend.example_response
{
    "success": true,
    "download_url": "https://nexonapi.com/api/translation-of-documents-and-files/dl/abc123",
    "message": "Translation completed successfully",
    "text": "string"
}