Arabic Document Translation API

The DocsRTL API lets you translate documents to Arabic programmatically. Upload a DOCX via HTTP, specify Arabic as the target language, and get back a formatted Arabic document - with all original styles, tables, fonts, and hyperlinks preserved. (ar)

Why use an API for Arabic document translation

Building Arabic document translation into a product means more than calling a text translation endpoint. Arabic is right-to-left, uses ligature-joining script, and requires full document reconstruction to render correctly in Word or PDF. A text API returns strings. DocsRTL's document API returns a complete, correctly formatted .docx file.

  • SaaS localization - translate user-uploaded documents to Arabic on the fly
  • Enterprise document workflows - automate translation of contracts, reports, and policies
  • Publishing pipelines - localize content for Arabic-speaking markets at scale
  • Legal and compliance - produce Arabic versions of regulatory documents automatically

API overview

DocsRTL uses a REST API with multipart file upload. Authentication is via API key (available on Pro plan and above at $19.90/month).

Translate a document to Arabic

POST /v1/translate
Content-Type: multipart/form-data
X-API-Key: drtl_your_key_here

file: [your .docx file]
target_lang: Arabic

Response (202 Accepted)

{
  "job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "pending",
  "poll_url": "/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6"
}

Supported target language codes

LanguageCode
ArabicArabic
HebrewHebrew
PersianPersian
UrduUrdu

What the API preserves

  • Arabic script rendering - correct ligatures, glyph shaping, and Unicode Arabic block coverage
  • RTL text direction - paragraph and section direction set for right-to-left reading
  • Original layout - margins, columns, headers, footers, page breaks
  • Tables - nested tables, merged cells, complex structure
  • Fonts and styles - original font choices preserved where Arabic character sets are available
  • Hyperlinks - all links survive translation

Getting started

  1. 1Sign up at docsrtl.com
  2. 2Upgrade to Pro for API access ($19.90/month)
  3. 3Generate an API key in your account settings
  4. 4Send your first request