> ## 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 Scan Status

Retrieves the status of the requested scan.

<Note>
  External Documentation

  To learn more, visit the [Cortex XDR documentation](https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR-Platform-APIs/Get-Action-Status).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                                                                                                         |
  | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Action ID | The action ID of the selected request, which is returned when running the *Scan Endpoint* action.<br />This can be also found in the Cortex XDR console Response > Action Center > Action ID field. |
</div>

## Example Output

```json theme={"dark"}
{
	"reply": {
		"general_status": "PENDING",
		"endpoints_pending": 1,
		"endpoints_canceled": 0,
		"endpoints_in_progress": 0,
		"endpoints_timeout": 0,
		"endpoints_failed": 0,
		"endpoints_completed_successfully": 0,
		"endpoints_pending_abort": 0,
		"endpoints_aborted": 0,
		"endpoints_expired": 0
	}
}
```

## Workflow Library Example

[Get Scan Status with Cortex Xdr and Send Results Via Email](https://library.blinkops.com/workflows/get-scan-status-with-cortex-xdr-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-scan-status-with-cortex-xdr-and-send-results-via-email/canvas" />
</div>
