Agent Plugin & AI Integration
Connect DocTranslate.io to AI agents and automation platforms. The DocTranslate Agent Plugin exposes the same public REST API as OpenAPI + platform manifests + language SDKs, so an autonomous agent can translate documents, text, images, audio and video, run PDF tools, and fill forms — using a single API key.
Base URL & Auth
Base URL:
https://doctranslate-api.doctranslate.ioAuth: header
X-API-Key: <key>orAuthorization: Bearer <key>Get a key: DocTranslate app → Settings → API Keys. Keys start with
dtl_.
Machine-readable spec (for agents)
Point your agent's tool loader at the OpenAPI spec:
Download the OpenAPI spec (openapi.yaml) — load this into your agent's tool loader.
The spec is generator-stamped from the live server, so parameter names, enums and status codes match production exactly.
Tools
translate_text
POST /v3/translate/text
Returns a task_id; poll get_result.
translate_document
POST /v3/translate/document
DOCX/PDF/PPTX/XLSX/XML/HTML. Keeps layout.
translate_image
POST /v3/translate/images
Translate text in an image.
translate_media
POST /v4/translate/audio · /v4/translate/video
Subtitle by default; set export_audio/export_video for a dubbed result (video → dubbed video end-to-end).
pdf_tool
POST /v3/pdf-tools/{tool}
29 PDF operations (convert, merge, split, rotate, compress…).
data_entry
POST /v3/data-entry
Extract fields from a document and fill a form/template.
get_upload_url
POST /v3/upload
Presigned R2 PUT for large files; then pass the returned file_key.
get_result
GET /v3/result/{task_id}
Poll async tasks; returns text + a presigned download URL.
Key parameters
Languages:
dest_lang(target). Source hint:original_langfor text/document/image;source_langfor audio/video. Omit the source to auto-detect.file_type: MIME-style enum, e.g.application/docx,application/pdf,application/pptx,application/xlsx.domain/tone: exact enum strings (e.g."Legal Documents","Formal") — a422response lists the valid values.Async contract: dispatch endpoints return
200with{ data: { task_id } }; pollget_resultuntil it returns the output + download URL.
Note-Taker & Presenter (a different base URL)
meeting_notes (Note-Taker) and presenter (Presentation Video) are served by the main app, not the translation-file host. Use base URL https://www.doctranslate.io/api/v1/third-party/ with the same X-API-Key.
Note-Taker: POST /note-taker/audio2dialog (multipart files) -> poll GET /note-taker/audio2dialog/{task_id} for data.result.dialog_url; then POST /note-taker/dialog2meeting -> poll GET /note-taker/dialog2meeting/{task_id} for data.result.markdown and docx_url.
Presenter (Presentation Video): POST /v3/upload (task_type=document, PPTX/PDF) -> POST /v3/create/transcripts -> POST /v3/create/video. These two are not in the OpenAPI spec; a bad key returns 401 INVALID_API_KEY.
Quick start (cURL)
SDKs
JavaScript / TypeScript:
@doctranslate/sdk—new DocTranslate({ apiKey }).translateDocument({ file, dest_lang })Python:
doctranslate—DocTranslate(api_key=...).translate_document(file=..., dest_lang="vi")
Both wrap the same endpoints and auth. See the plugin repository for full method signatures.
Supported agent platforms
The plugin ships ready-to-install manifests for:
Model Context Protocol (MCP) — see the MCP page.
Composio, Pi, and Custom GPT / OpenAI plugin — install the manifest, paste your API key, done.
Any platform that accepts an OpenAPI 3 spec can consume the API directly from the OpenAPI URL above.
Notes
Every tool deducts credit per completed task; a bad key returns 401.Enhanced-conversion and billing are unaffected — the plugin only calls the public translation API.
Last updated