> For the complete documentation index, see [llms.txt](https://developer.acquire.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.acquire.io/master/js-api/advanced/reference.md).

# Reference

### After app loads

To execute code after acquire app loads, push your code to acquire array using **`acquire.push()`**.

{% hint style="info" %}
&#x20;Make sure to put **`acquire.push()`** before init.js under **`<HEAD>`** section of your code.
{% endhint %}

#### Sample Code

```javascript
<script>
   window.acquire = window.acquire || [];
   acquire.push(function(){
      // your code here will run
      // after acquire widget loads completely.
   });
</script>
```

### Methods on acquireIO Object

| Method              | Description                              |
| ------------------- | ---------------------------------------- |
| `max()`             | Maximizes Chat Widget                    |
| `min()`             | Minimizes Chat Widget                    |
| `startChat()`       | Starts a new chat                        |
| `myself()`          | Return current User Object               |
| `availableAgents()` | Return list of available agents as Array |

```javascript
acquireIO.max();
acquireIO.min();
acquireIO.startChat();
acquireIO.myself();
acquireIO.availableAgents();
```
