# Is Device Connected

## Returns the device online state

<mark style="color:blue;">`GET`</mark> `https://{server_address}/external/api/isHardwareConnected?token={token}`

This API call allows you to get the device online status\
**Example:**\
`https://blynk.cloud/external/api/isHardwareConnected?token=Rps15JICmtRVbFyS_95houlLbm6xIQ2L`

#### Path Parameters

| Name  | Type   | Description       |
| ----- | ------ | ----------------- |
| token | string | Device auth token |

{% tabs %}
{% tab title="200 Returns true or false" %}

```
true
```

{% endtab %}

{% tab title="400 Could not find a device token" %}

```
{"error":{"message":"Invalid token."}}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
You can get the **Device auth token** in [Device info](https://docs.blynk.io/en/~/revisions/ynmC8lZ6FPocTYWigjcO/getting-started/activating-devices/manual-device-activation#step-3-getting-auth-token).
{% endhint %}
