Get Translation Lite Status
GET
/translation_lite/{task_id}
const url = 'https://example.com/translation_lite/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”task_id
required
Task Id
string
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”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
null
failed_items
Any of:
Array<object>
object
key
additional properties
any
null
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>
ValidationErrorobject
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": {} } ]}