# Xero

Xero offers an online cloud-based SaaS accounting software platform for small and medium-sized businesses.

## Account integration using OAuth

To begin, you will need:

* A [Xero](https://www.xero.com/) account.

**STEP 1**: In iMBrace, select **Credential** and click the **\[ADD NEW]** button.

![](/files/0oY0DLePQ2rZgHy8F4zU)

**STEP 2:** Select **Xero OAuth2 API** in the **Integrations** section.

![](/files/cHcxi4KwhiSgWOyo72H4)

**STEP 3**: Click on the **\[Copy URL]** button to copy the **OAuth Redirect URL**.

![](/files/NMcKzOC3TCWepPWWLLqO)

**STEP 4:** Go to the [apps page](https://developer.xero.com/myapps) in the Xero developer portal.

![](/files/fqOYM1itWKcmPl4wthea)

**STEP 5:** Click on **\[New app]** butto&#x6E;**,** fill in any necessary information and paste the **Redirect URL** that you copy from iMBrace.

![](/files/YSc6i8deLKTz3moPwLbi)

**STEP 6:** Click the **\[Create app]** button.

**STEP 7:** Go to the **Configuration** section.

![](/files/IF1tPlkWtmtLmfvCqaKa)

**STEP 8**: Click the **\[Generate a secret]** butto&#x6E;**.**

![](/files/Dl8NR3gEBfIpg3HjDXFT)

**STEP 9**: Copy both the **Client id** and **Client secret 1**.

![](/files/ZNXZOyjpbfz1xnceHWwP)

**STEP 10:** In iMBrace, paste the **Client ID**, **Client Secret** that you copy from Xero and click **\[Connect]** button.

![](/files/bHHXa4VQ5chOSmdHKbIj)

**DONE:** The credential can then be used for Xero nodes.


---

# 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://imbrace.gitbook.io/imbrace-documentation/integrations/xero.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.
