Data Entry API
Auto-fill a template document with data extracted from one or more source files. New — v3-only (not part of the legacy contract). Paid (deducts credit per completed task).
Endpoint:
POST /v3/data-entry(multipart/form-data)Base URL:
https://doctranslate-api.doctranslate.ioAuth: header
X-API-Key: <key>(orAuthorization: Bearer <key>)
What it does
Give it source file(s) to read data from plus a template (a DOCX, XLSX, or fillable PDF form). It extracts the relevant fields and returns a filled copy of the template. Async: you get a task_id, then poll get_result.
Parameters
files
✅
file(s)
Source file(s) to extract data from (multipart field files, one or more).
template
⚠️
file
The form/template to fill. Required unless template_id is given.
template_id
⚠️
integer
A template already saved on this account — an alternative to uploading template.
target_lang
string
Output language for the filled values.
domain
string
Domain hint (exact enum string; a 422 lists valid values).
custom_prompt
string
Extra extraction/fill instructions.
dictionary
string
JSON-encoded dictionary array (term overrides).
Response
200→{ "data": { "task_id": "..." } }— queued. PollGET /v3/result/{task_id}for the filled file'surl_download.401invalid/missing key ·402not enough credits ·404template_iddoesn't resolve ·422bad/missing field (detail[].loc).