> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Task Status

Retrieves the status of the specified task.

Required API key role permissions:

* `Endpoint Inventory - view`

<Note>
  External Documentation

  To learn more, visit the [Trend Vision One documentation](https://automation.trendmicro.com/xdr/api-v3/#tag/Endpoint-Security/paths/~1v3.0~1endpointSecurity~1tasks~1%7Bid%7D/get).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                                           |
  | --------- | ------------------------------------------------------------------------------------------------------------------------------------- |
  | Task ID   | The ID of the task. For example: `53cd53d0-6798-4547-ab07-9386cc2c891e`.<br /><br />Can be obtained by using the `List Tasks` action. |
</div>

## Example Output

```json theme={"dark"}
{
	"id": "53cd53d0-6798-4547-ab07-9386cc2c891e",
	"status": "running",
	"action": "export",
	"createdDateTime": "2023-02-08T10:00:00Z",
	"lastActionDateTime": "2023-02-08T10:00:00Z",
	"resourceLocation": "string",
	"expiredDateTime": "2023-02-08T10:00:00Z",
	"error": {
		"code": "TaskError",
		"message": "string"
	}
}
```

## Workflow Library Example

[Get Task Status with Trend Vision One and Send Results Via Email](https://library.blinkops.com/workflows/get-task-status-with-trend-vision-one-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-task-status-with-trend-vision-one-and-send-results-via-email/canvas" />
</div>
