Get Document Content
get_document_contentDownloads the translated file once the job has completed.
Free. Never charged, and downloading again never charges again.
Authentication: a vq_key_ key holding translate:read.
Bytes, not a link
The file is streamed through this API. The response body IS the file: there is
no URL to follow, nothing that expires, and nothing to forward. Send the same
Authorization header you use for every other call.
Which file you get
By default, the format you asked for in outputFormat. A job submitted with
outputFormat=pdf also produces a Word copy when one could be generated; add
?format=docx to download it. ?format=pdf asks for the PDF explicitly. If the
format you ask for does not exist for this job the answer is 404.
Content-Type and Content-Disposition (an attachment with a filename) are set
from the file. ETag is supported (If-None-Match gives 304) and so is
Range (206) for plain, unencrypted files, so an interrupted download can
resume.
Not finished
While status is not completed this is a 404. Poll the status route first.
Example
curl -o translated.pdf \
https://api.vaquill.ai/api/v1/translation/documents/$DOCUMENT_ID/content \
-H "Authorization: Bearer $VAQUILL_API_KEY"Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "get_document_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| format | No |