> ## 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.

# List Endpoints

Returns a list of endpoints.

<Note>
  External Documentation

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

## Example Output

```json theme={"dark"}
{
  "reply":[
    {
      "agent_id":"<agent ID>",
      "agent_status":"LOST",
      "host_name":"EX2",
      "agent_type":"Server",
      "endpointTags":"<tag name>",
      "ip":<IP address>,
      "last_seen":1652875917846,
      "tags":{
        "server_tags":[
          "connection_lost1",
          "filtered1"
        ],
        "endpoint_tags":[
          "register2"
        ]
      },
      "users":"root"
    },
    {
      "agent_id":"<agent ID>",
      "agent_status":"CONNECTED",
      "host_name":"<host name>",
      "agent_type":"Workstation",
      "endpointTags":"<tag name>",
      "ip":<IP address>,
      "last_seen":1648967781569,
      "tags":{
        "server_tags":[
          "connection_lost1",
          "filtered1"
        ],
        "endpoint_tags":[
          "register2"
        ]
      },
      "users":"root"
    },
    {
      "agent_id":"<agent ID>",
      "agent_status":"DISCONNECTED",
      "host_name":"<host name>",
      "agent_type":"Workstation",
      "endpointTags":"<tag name>",
      "ip":<IP address>,
      "last_seen":1648997281089,
      "tags":{
        "server_tags":[
        ],
        "endpoint_tags":[
        ]
      },
      "users":"root"
    }
  ]
}
```

## Workflow Library Example

[List Endpoints with Cortex Xdr and Send Results Via Email](https://library.blinkops.com/workflows/list-endpoints-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/list-endpoints-with-cortex-xdr-and-send-results-via-email/canvas" />
</div>
