# Bill

## Connection Requirements

{% stepper %}
{% step %}

### Domain

The domain of Bill.

{% hint style="info" %}
Default:\
gateway.stage.bill.com
{% endhint %}
{% endstep %}

{% step %}

### API Token

To generate an API token in **BILL Spend & Expense**, follow these steps:

{% stepper %}
{% step %}
Open your Spend & Expense profile settings by clicking the **Profile** icon in the top-right corner and selecting **Profile**, or by selecting **My Account** from the Spend & Expense navigation menu.
{% endstep %}

{% step %}
Go to the **Settings** tab.
{% endstep %}

{% step %}
Locate the **API tokens** section.
{% endstep %}

{% step %}
Click **Generate new token**.
{% endstep %}

{% step %}
Your API token will appear in the **New token** field. Copy and store it securely, as it will not be displayed again once the window is closed.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
In the production environment, the Spend & Expense API user must have the **ADMIN** user role to generate a Spend & Expense API token.
{% endhint %}
{% endstep %}

{% step %}

### Proxy

Proxy URL. *(optional)*
{% endstep %}

{% step %}

### Is Secure?

Enable this option if the connection will be established over **HTTPS**.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Please perform a **connection test** to ensure there is a valid connection to the Bill host.\
When the discovery operation is finalized, you will be able to see the details on the **Assets** page.
{% endhint %}


---

# 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.octoxlabs.com/adapters/adapters/bill.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.
