# get\_task

`imerit_ango.sdk.SDK.`

## get\_task(task\_id, include\_answer)

Retrieve a specific task from your project.

### Parameters

* **task\_id:** string
  * The unique identifier for the task. You can find the task ID in [the user interface](https://docs.imerit.net/sdk/sdk-documentation/..#task-and-asset-ids) or retrieve it using the [get\_tasks](https://docs.imerit.net/sdk/sdk-documentation/project-level-sdk-functions/get_tasks) function.
* **include\_answer:** bool, *default False*
  * Determines whether the task’s answer data is included in the response.

Returns:

* **output:** dict
  * A dictionary containing the result of the operation.
  * Including a `status` field indicating whether the request was successful and a `data` field containing the response payload with updated resources produced by the operation.

### Example

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

```python
import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK

load_dotenv('variables.env')
api_key = os.getenv('API_KEY')

ango_sdk = SDK(api_key)

task_id = "<YOUR TASK ID>"
sdk_response = ango_sdk.get_task(task_id=task_id, include_answer=True)

data_url = sdk_response['data']['task']['asset']['data']
external_id = sdk_response['data']['task']['asset']['externalId']
```

{% endtab %}

{% tab title="curl" %}

```bash
curl -X GET "https://imeritapi.ango.ai/v2/task/$TASK_ID" \
  -H "Content-Type: application/json" \
  -H "apikey: $API_KEY"
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**See also**

[get\_tasks](https://docs.imerit.net/sdk/sdk-documentation/project-level-sdk-functions/get_tasks), [get\_task\_history](https://docs.imerit.net/sdk/sdk-documentation/project-level-sdk-functions/get_task_history)
{% endhint %}
