# Fetching Device Status API

{% hint style="danger" %}

## Device Status API is disabled from Feb 1st, 2023 onwards, so any request made to this end point will fail

{% endhint %}

This API request will fetch the device details like battery percentage, queue count, free disk space etc

{% hint style="danger" %}

### Phone Automation Service is depreciated&#x20;

{% endhint %}

## Device Status Request

<mark style="color:green;">`POST`</mark> `https://pickyassist.com/app/api/v2/device-status`

This API request will fetch the device details like battery percentage, queue count, free disk space etc

#### Request Body

| Name  | Type   | Description                      |
| ----- | ------ | -------------------------------- |
| token | string | Your API Token for authorisation |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "project_id": "27",
  "device_id": "f5e17b8c81b8ecff",
  "phone_name": "Asus ASUS_Z010D",
  "battery_percentage": "",
  "charging_state": "",
  "wifi_signal_strength": "Not Connected",
  "internet_status": "",
  "message_queue_count": "2",
  "call_queue_count": "",
  "free_disk_space": "",
  "cloud_message_status": "Registered",
  "time": "10-07-2018 11:52 AM"
}

```

{% endtab %}
{% endtabs %}

### Sample Request

```javascript
{
  "token": "PICKY_API_TOKEN"
}
```

### Sample Response

```javascript
{
  "project_id": "27",
  "device_id": "f5e17b8c81b8ecff",
  "phone_name": "Asus ASUS_Z010D",
  "battery_percentage": "",
  "charging_state": "",
  "wifi_signal_strength": "Not Connected",
  "internet_status": "",
  "message_queue_count": "2",
  "call_queue_count": "",
  "free_disk_space": "",
  "cloud_message_status": "Registered",
  "time": "10-07-2018 11:52 AM"
}
```

### Response Variables&#x20;

| **Variable**           | **Type** | **Description**                                                                                  |
| ---------------------- | -------- | ------------------------------------------------------------------------------------------------ |
| project\_id            | Numeric  | Project id associated                                                                            |
| device\_id             | Text     | Device ID of the connected phone                                                                 |
| battery\_percentage    | Numeric  | <p>Battery percentage of the connected phone</p><p>0-100 in percentage</p>                       |
| wifi\_signal\_strength | Numeric  | <p>Wifi Signal Strength of the connected phone</p><p>0=Not Connected<br>1-100 in percentage </p> |
| internet\_status       | Text     | <p>Internet Type & Status of the connected phone</p><p>2G<br>3G<br>4G</p>                        |
| message\_queue\_count  | Numeric  | Messages Queue count if any in the phone                                                         |
| call\_queue\_count     | Numeric  | Call Queue count if any in the phone                                                             |
| free\_disk\_space      | Numeric  | Total Free Disk Space in the phone                                                               |
| cloud\_message\_status | Numeric  | <p>Phone Sync Status with Picky Assist Cloud Servers</p><p>0=Registered<br>1=Not Registered </p> |
| time                   | Date     | Date & Time when the record is updated , format DD-MM-YYYY hh:mm AM                              |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.pickyassist.com/api-documentation-v2/device-manage-apis/fetching-device-status-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
