> For the complete documentation index, see [llms.txt](https://docs.imerit.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imerit.net/sdk/sdk-documentation/project-level-sdk-functions/get_task.md).

# get\_task

`imerit_ango.sdk.SDK.`

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

Retrieve detailed information about a specific task.

### Parameters

* **task\_id:** string
  * The unique identifier for the task. You can find the task ID in [the user interface](/sdk/sdk-documentation.md#task-and-asset-ids) or retrieve it using the [get\_tasks](/sdk/sdk-documentation/project-level-sdk-functions/get_tasks.md) 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](/sdk/sdk-documentation/project-level-sdk-functions/get_tasks.md), [get\_task\_history](/sdk/sdk-documentation/project-level-sdk-functions/get_task_history.md)
{% endhint %}
