📊 Get Translation Status

    This API checks the status of a translation task. It can return either the page count of the uploaded document or the processing status of the translation.


    📋 Basic Information

    • Method: GET
    • Path: https://api.bluente.com/api/20250924/blu_translate/check
    • Authentication: Required — Authorization: Bearer $BLUENTE_API_KEY

    📝 Request Parameters

    Query String

    FieldTypeRequiredDescription
    entrystringYesThe type of query. Options: "get_page_count" or "get_status"
    idintYesTask ID returned from the Upload File API

    Request Body

    • - (none required)

    💡 Example

    curl -X GET "https://api.bluente.com/api/20250924/blu_translate/check?entry=get_status&id=1" \
         -H "Authorization: Bearer $BLUENTE_API_KEY"

    or

    fetch("https://api.bluente.com/api/20250924/blu_translate/check?entry=get_status&id=1", {
      method: "GET",
      headers: {
        "Authorization": "Bearer $BLUENTE_API_KEY"
      }
    })

    ✅ Success Response Example

    {
      "message": "success",
      "code": 0,
      "data": {
        "id": 1,
        "serviceCode": 0,
        "pageCount": 1,
        "status": "SERVICE_PROCESSED",
        "message": "File is ready for translation",
        "updatedAt": "2024-05-19 10:15:23"
      }
    }

    📊 Response Fields

    FieldTypeDescription
    messagestringResponse message, usually "success"
    codeintStatus code, 0 means success
    dataobjectMain payload
    └─ idintTask ID
    └─ serviceCodeintInternal service code
    └─ pageCountintNumber of pages in the uploaded document
    └─ statusstringCurrent processing status (see status list below)
    └─ messagestringDetailed status message
    └─ updatedAtstringLast updated timestamp

    🏷️ Status Values

    StatusDescription
    UPLOADINGThe file is being uploaded, continue to wait.
    SERVICE_PROCESSINGThe file is being processed, continue to wait.
    SERVICE_PROCESSEDFile is processed and ready for translation. (At this point, call Translate File API)
    TRANSLATINGThe file is being translated, continue to wait.
    READYTranslation completed. (At this point, call Download File API)
    ERRORSomething went wrong. Stop checking and show an error message.
    CANCELLEDThe task was cancelled. Stop checking.
    CREDITS_INSUFFICIENTNot enough credits to translate the document. Stop checking and add credits.

    Other intermediate values (for example UPLOADED or TRANSLATED) can appear briefly. Treat any status not listed above as “continue to wait”.


    ❌ Error Response Example

    {
      "message": "record not found",
      "code": 500
    }

    An unknown task id currently returns code: 500 with "record not found". A task uploaded by another user returns code: 41. See Error Codes.


    📌 Notes

    • Always poll this API until the status becomes READY, or one of the stopped states: ERROR, CANCELLED or CREDITS_INSUFFICIENT.
    • Upload is asynchronous, so a file that can’t be processed (unsupported, corrupt or password-protected) shows up here as ERROR before translation starts. The message field describes the problem.
    • When status = SERVICE_PROCESSED, you should trigger the Translate File API.
    • When status = READY, you should call the Download File API.