**Version: 202201**

# Get Upload File Task

**GET** `/openapi/2022-01/file/task/:task_id`

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)

## Request

**Path Parameters**

- `task_id` string (required)

  The unique identifier for the upload task.

## Responses

**200 | 400 | 404**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `task_id` string

  **Example:** `300b5e33-3ac5-41c5-9819-7e2e8aad6a98`
- `total` integer

  **Default value:** `0`

  **Example:** `1`
- `finished` integer

  **Default value:** `0`

  **Example:** `1`
- `status` integer

  **Default value:** `0`

  **Example:** `0`
- `success_list` object[]

  *   Array [

  - `file_uri` string

    **Example:** `652c51e6ea5273f8e0b5c3a30b62fd57.jpeg`
  - `origin_link` string

    **Example:** `https://picx.zhimg.com/v2-3b4fc7e3a1195a081d0259246c38debc_720w.jpg?source=172ae18b`
  - `upload_link` string

    **Example:** `https://cdn.shoplazza.com/652c51e6ea5273f8e0b5c3a30b62fd57.jpeg`
  *   ]
- `failure_list` object[]

  *   Array [

  - `` object
  *   ]
- `origin_list` string[]

```json
{
  "task_id": "300b5e33-3ac5-41c5-9819-7e2e8aad6a98",
  "total": 1,
  "finished": 1,
  "status": 0,
  "success_list": [
    {
      "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_list": [
    {}
  ],
  "origin_list": [
    "https://picx.zhimg.com/v2-3b4fc7e3a1195a081d0259246c38debc_720w.jpg?source=172ae18b"
  ]
}
```

```json
{
    "task_id": "300b5e33-3ac5-41c5-9819-7e2e8aad6a98",
    "total": 1,
    "finished": 1,
    "status": 0,
    "success_list": [
        {
            "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_list": [],
    "origin_list": [
        "https://picx.zhimg.com/v2-3b4fc7e3a1195a081d0259246c38debc_720w.jpg?source=172ae18b"
    ]
}
```

400

**application/json**

**Schema | Example | Result**

**Schema**

- `msg` string

  **Example:** `request status not ok`
- `status` integer

  **Default value:** `0`

  **Example:** `400`

```json
{
  "msg": "request status not ok",
  "status": 400
}
```

```json
{
  "msg": "request status not ok",
  "status": 400
}
```

404

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "data is null"
  ]
}
```

```json
{
  "errors": [
    "data is null"
  ]
}
```
