Get Upload File Task

This API retrieves the status and details of an upload task that was previously created using the task ID (task_id). It provides information about the task’s progress, the number of files processed, and the results (success and failure lists).

The Get Upload File Task API retrieves the status and details of an upload task that was previously created using the task_id. It provides information about the task's progress, the number of files processed, and the results (success and failure lists).

This API is especially useful for:

  1. Monitoring the progress of file upload tasks.
  2. Fetching details of successfully uploaded files, including the upload_link.
  3. Identifying files that failed to upload for troubleshooting.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Path Parameters

FieldTypeDescriptionExample
task_idstringThe unique identifier for the upload task.300b5e33-3ac5-41c5-9819-7e2e8aad6a98

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Success Response

FieldTypeDescriptionExample
task_idstringThe unique identifier for the upload task.300b5e33-3ac5-41c5-9819-7e2e8aad6a98
totalintTotal number of files in the upload task.1
finishedintNumber of files successfully processed.1
statusintStatus of the upload task (0 = completed, 1 = in progress, etc.).0
success_listarrayA list of successfully uploaded files, including file_uri, origin_link, and upload_link.[{"file_uri": "652c51e6ea5273f8e0b5c3a30b62fd57.jpeg", "origin_link": "https://picx.zhimg.com/v2-3b4fc7e3a1195a081d0259246c38debc_720w.jpg?source=172ae18b", "upload_link": "https://cdn.shoplazza.com/652c51e6ea5273f8e0b5c3a30b62fd57.jpeg"}]
failure_listarrayA list of files that failed to upload.[]
origin_listarrayA list of original file URLs from the upload request.["https://picx.zhimg.com/v2-3b4fc7e3a1195a081d0259246c38debc_720w.jpg?source=172ae18b"]

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorString "page not found"Indicates an error encountered during the process

Error Detail

ErrorCodeDescriptionPossible reasons
400Bad Request1. Backend status indicates failure
2.Invalid domain url or credentials
3.Missing or empty task_id
404Not FoundMissing or invalid data
500StatusInternalServerError1.Aborted
2.Unimplemented
3.Unauthenticated
4.DeadlineExceeded
5. Response message parsing error

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!