# Demo Backend SDK

If you want to load acquire full backend on any page or inside your backend then go acquire backend js sdk page ([Setup Backend JS SDK](https://developers.acquire.io/setup-backend-js-sdk)) and setup sdk. First you'll need to load acquire script and use below acquire js code to configure SDK and indentify agent and account details so we can load full visitor list and all required parts of acquire.io to let agent handle all chats, visitor list etc.

### Step 1. Login Acquire Dashboard <a href="#step-1--login-acquire-dashboard" id="step-1--login-acquire-dashboard"></a>

If you want to create your backend sdk then first login acquire dashboad ([app.acquire.io](https://app.acquire.io/)). When you logged into [app.acquire.io](https://app.acquire.io/) you can see your all visitor in backend SDK.

![Acquire Login](/files/-LwXfNP5r9EuShBrJn3E)

### Step 2. Create HTML Page <a href="#step-2--create-html-page" id="step-2--create-html-page"></a>

After login dashboad you create a HTML page and include sdk script `<script src="https://s.acquire.io/bare-backend.js"></script>` and use backend sdk setup code ([Setup Backend JS SDK](https://developers.acquire.io/setup-backend-js-sdk)).

![](/files/-LNEQ2H57QT3nm0TIMei)

### Step 3. Get ACCOUNT\_UID And Agent Details <a href="#step-3--get-account_uid-and-agent-details" id="step-3--get-account_uid-and-agent-details"></a>

Acquire Dashboard in top right corner in click on profile name and  you  see ACCOUNT\_UID use this and Dashboard in open Agent menu you see here agent all details.

![Agents List](/files/-LNEQ9rFEP1gdCX0pVjY)

### How to get Agents details using API

if you want to get all agents details use acquire agent **REST API** (<https://developer.acquire.io/rest-apis/agent> ). Agent API in you can get agents all details and make a own dashboard.

**Setup Agent API :**

Acquire agent API setup process steps:

1. first get acquire API token (<https://app.acquire.io/setting/token> ) and  save in anywhere secure (like : database) after make functionality to get token use secure way.
2. Use **agents list** API (<https://developer.acquire.io/rest-apis/agent/agents-list>) for all data show in a table view.
3. If you want to create new agent use **agents add** API (<https://developer.acquire.io/rest-apis/agent/agent-add>) and make a form to save new agent.
4. &#x20;For edit agent details use **agent edit** API ( <https://developer.acquire.io/rest-apis/agent/edit-get-agent> ) . Edit API in you can get particular agent details by id and show in input.
5. After above process you use **update API** (<https://developer.acquire.io/rest-apis/agent/update>) for edit agent's details save/ update.

### Step 4. Open HTML Page <a href="#step-4--open-html-page" id="step-4--open-html-page"></a>

After all setup load HTML page in browser and see all live agents details. You can use this page as a iframe.

![Visitors List](/files/-LNEQEsrQqbqHAuQsy2z)


---

# 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/backend-js-sdk/demo-backend-sdk.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.
