# 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();
```


---

# 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://developer.acquire.io/master/js-api/advanced/reference.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.
