> For the complete documentation index, see [llms.txt](https://help.pickyassist.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pickyassist.com/api-documentation-v2/device-manage-apis/fetching-device-status-api.md).

# Fetching Device Status API

Manager your connected device through 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
