# Xero

Go to <https://developer.xero.com/app/manage> and create a new app. Fill the application name and redirect URL (<https://api.appmixer.com/auth/xero/callback>).

<figure><img src="/files/ggZfQC4o3xocbL8tIOuJ" alt=""><figcaption></figcaption></figure>

Get you *client ID* and *clientSecret* in the "Configuration" section

<figure><img src="/files/MxJyZ6z3io9fsebtYhkB" alt=""><figcaption></figcaption></figure>

Go to the Appmixer BackOffice -> Configuration. Add new configuration: `appmixer:xero` . Add your `clientId` and `clientSecret` keys.

<figure><img src="/files/wDmbppdNY6RSxjGswOI2" alt=""><figcaption></figcaption></figure>

## Webhooks

All trigger components (for example `NewInvoice`) use Xero webhooks. In order to use this component(s) in Appmixer, you have to register Appmixer's Xero URI in Xero first.

Go to [https://developer.xero.com/myapps](https://developer.xero.com/app) then choose your Appmixer app. Navigate to the "Webhooks" section and add a new webhook.

<figure><img src="/files/YkQYapmYzrq9Ych6aVe3" alt=""><figcaption><p>Xero Webhooks configuration</p></figcaption></figure>

Fill the field **Send notifications to** with `https://api.acme.appmixer.cloud/plugins/xero/webhooks` (replace `acme` with your subdomain) and select the events you want to listen to.

For detailed steps, see [Xero documentation](https://developer.xero.com/documentation/guides/webhooks/creating-webhooks/).

Make sure to copy the **Webhooks key** and paste it to the Appmixer BackOffice -> Configuration -> `appmixer:xero` -> `webhookKey` field.

<figure><img src="/files/IYA0n9ZUIciTBrECMc0i" alt=""><figcaption><p>Appmixer BackOffice configuration for Xero Webhooks</p></figcaption></figure>


---

# 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://docs.appmixer.com/6.0/6.1/app-registration/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.
