# Task Status

Use this API endpoint to check the progress of a scheduled task through Celery. All you need is the `task_id`, which you receive when you schedule the task. This allows you to monitor the status and progress of your long-running tasks.

## Task Status API

<mark style="color:green;">`POST`</mark> `/getImage`

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Body**

| Name  | Type   | Description                                                                                                                                                                                                                                                 |
| ----- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id    | string | -> The `id` parameter is used to provide the unique identifier of the scheduled task you want to check the status for.                                                                                                                                      |
| refID | string | -> The `reference_id` parameter is an optional field that allows you to provide a reference ID to identify the request, if required. If you did not specify a `reference_id` when passing the input parameters, there is no need to provide this parameter. |

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "time_required": "",
  "error": "",
  "error_data": "",
  "input": "",
  "output": "",
  "app_id": "",
  "task_id": "",
  "status": ""
}
```

{% endtab %}

{% tab title="500" %}

```json
{
  "time_required": "",
  "error": "",
  "error_data": "",
  "input": "",
  "output": "",
  "app_id": "",
  "task_id": "",
  "status": ""
}
```

{% endtab %}
{% endtabs %}

## Run the API

To test this API, please use the following link:

{% embed url="<https://app.theneo.io/api-runner/qolaba/ml-apis/api-reference/get-status>" %}
