Skip to content

Get Translation Lite Status

GET
/translation_lite/{task_id}
curl --request GET \
--url https://example.com/translation_lite/example \
--header 'Authorization: Bearer <token>'

Poll the status of a lightweight batch translation.

Returns progressive results — each poll includes all translations completed so far.

Statuses: pending — queued, waiting for worker started — worker picked up the task (warmup or first item) progress — translations in flight; ‘translations’ list grows each poll completed — all items done failed — task failed; ‘error’ contains details

task_id
required
Task Id
string
after_index
Any of:
integer

Successful Response

Media typeapplication/json
BatchTranslateLiteStatus
object
task_id
required
Task Id

Celery task ID

string
status
required
Status

Task status: pending | started | progress | completed | failed

string
translations
Any of:
Array<object>
object
key
additional properties
any
completed
Any of:
integer
total
Any of:
integer
failed_items
Any of:
Array<object>
object
key
additional properties
any
pivot_used
Any of:
boolean
pivot_lang
Any of:
string
error
Any of:
string
model_info
Any of:
object
key
additional properties
any
effective_params
Any of:
object
key
additional properties
any
Examplegenerated
{
"task_id": "example",
"status": "example",
"translations": [
{}
],
"completed": 1,
"total": 1,
"failed_items": [
{}
],
"pivot_used": true,
"pivot_lang": "example",
"error": "example",
"model_info": {},
"effective_params": {}
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}