Translate

Monitor file translation

Changed on

Get information about the one or more Files that are being translated with machine translation. Query filters are optional but at least one must be provided.

Example CURL:

curl -X GET 'https://api.lilt.com/v2/translate/file?key=API_KEY&translationIds=1,2&fromTime=1607966744&toTime=1707966744&status=InProgress'
get/v2/translate/file

Request

  • Base URL
    https://api.lilt.com
  • URL
    https://api.lilt.com/v2/translate/file
  • Auth
    HTTP basic

Query parameters

translationIdsstring

List of translation ids, comma separated

statusstring

One of the translation statuses - InProgress, Completed, Failed, ReadyForDownload

fromTimenumber

Results after this time (inclusive) will be returned, specified as seconds since the Unix epoch.

toTimenumber

Results before this time (exclusive) will be returned, specified as seconds since the Unix epoch.

Response

Translation Info

idinteger

Unique identifier for this translation.

fileIdinteger

id of the File that is being translated.

statusstring

Status of the translation - InProgress, ReadyForDownload, Completed, Failed.

createdAtinteger

Time when this translation was started, in seconds since the Unix epoch.

errorMsgstring

Error message, present when status is Failed.

Example response

[
  {
    "id": 1,
    "fileId": "2,",
    "status": "InProgress",
    "createdAt": 1609357135
  }
]

Changes

    • info

      api operation id monitorFileTranslation was added

    • info

      added the new optional query request parameter fromTime

    • info

      added the new optional query request parameter status

    • info

      added the new optional query request parameter toTime

    • info

      added the new optional query request parameter translationIds

    • info

      added the non-success response with the status

    • info

      added the success response with the status