> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/harness-platform/troubleshooting-and-resources/troubleshooting/delegate-details-api.md).

# Delegate disconnected via API check

### Problem Statement <a href="#problem-statement" id="problem-statement"></a>

How to identify if the delegate is disconnected using api ?

### Resolution <a href="#resolution" id="resolution"></a>

Delegate status can be seen in the UI however it always helps if there is a progrmatic way of get the status of the delegates along with some other delegate details.

We have a graphql api function that helps us provide such details. We can parse the response to get name , ip of the delegate version and connection status information.

Below is an example graphql api for the same:

```{delegatelist(filters:

    nodes {

      delegateName

      ip

      status
      
      disconnected

      version

      hostName

      lastHeartBeat

    }

  }

}
```
