Get Document
get_documentReturns the status of a document translation job.
Free. Never charged, so poll as often as the rate limit allows. A sensible cadence is every 2 to 5 seconds.
Authentication: a vq_key_ key holding translate:read.
Status
| Meaning |
| Queued, not started. |
| Being translated. |
| Done. Download it from |
| Not translated and not charged. See |
pagesCharged is null until the job completes, because pages are charged
once, on completion.
Errors
error.code is INSUFFICIENT_TRANSLATION_PAGES (your balance did not cover the
document when it was processed) or TRANSLATION_FAILED. Neither charges you.
Example
curl https://api.vaquill.ai/api/v1/translation/documents/$DOCUMENT_ID \
-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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||