# Device Commands API’s

## List of Available Commands

{% hint style="info" %}
You need to pass your command through **“command”** tag&#x20;
{% endhint %}

| **Command**          | **Description**                                                                                                                                                |
| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| restart              | This will restart the picky assist app installed in the device                                                                                                 |
| reset                | This will reset the picky assist app, all message queue will be deleted and database in the device will be cleared                                             |
| delete-message-queue | This command will delete all messages which are in Queue                                                                                                       |
| delete-call-queue    | This command will delete all calls which are in Queue                                                                                                          |
| stop-message-queue   | <p>This command will temporarily stop processing messages from queue.</p><p>Please note if your send a message then the Queue will start processing again.</p> |
| stop-call-queue      | This command will stop all queue in the device                                                                                                                 |
| resume-message-queue | This will resume the message queue if its stopped earlier                                                                                                      |
| resume-call-queue    | This will resume the call queue if its stopped earlier                                                                                                         |

## Commanding API's

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

This API allows you to command your device remotely like , stopping a queue , restart the app etc

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
|      | string |             |

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

```
```

{% endtab %}
{% endtabs %}

### Sample Request&#x20;

```javascript
{
  "token": "PICKY_API_TOKEN",
  "command": "restart"
}
```

### Sample Response

```javascript
{
  "status": 100,
  "message": "Success"
}
```


---

# 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/device-commands-apis.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.
