# Brex Integration

## Resmo + Brex Integration Fundamentals

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2Fog7nhoFHgNzjVdfmyFYm%2Fbrex-logo.png?alt=media&#x26;token=888eaa9f-4515-4f7d-81a3-bc4d1d7818e2" alt=""><figcaption></figcaption></figure>

Resmo Brex integration helps you gain visibility over your Brex resources, like companies, departments, and users, while keeping your environment secure and compliant.

### What does Resmo offer to Brex users?

* Collect your Brex assets like users, locations, departments, and companies in a single asset directory.
* Query your resources using SQL or free text search.
* Automate your security and compliance checks with managed or custom rules.
* Receive notifications when there is a rule change.
* Keep track of resource and configuration changes.

### How does the integration work?

Resmo uses API to do the initial polling and collect existing resources. Following the initial polling, it receives updates and changes in real-time through webhook and regular polling.

#### Available resources

{% embed url="<https://resources.resmo.com/brex>" %}

## Integration walkthrough

### How to install

1. Select Brex on your Integrations page on Resmo.
2. Click the Add Integration button at the bottom right corner of the opening modal.
3. Log in to your Brex account on a new tab on your browser.
4. Go to **Create Token** under the **Developer -> Settings** page.

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2F3HlggoKVV51JahASrAEN%2Fbrex-api-token.jpg?alt=media&#x26;token=fff17056-3789-4230-910e-ddf47daa90f5" alt=""><figcaption></figcaption></figure>

5. Create and copy the Read-only Auth Token from your Brex account. Required scopes:

{% hint style="info" %}

* Users Read
* Locations Read
* Departments Read
* Companies Read
  {% endhint %}

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2Fo4ZJH1aYuGdy24dlH9Gm%2Ftoken-scopes.png?alt=media&#x26;token=8bcea5cd-f3cf-48d1-9437-9842d8ac0972" alt=""><figcaption></figcaption></figure>

6. Paste it to the API Token field on the setup page.

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2FJooZD8LqB1nyCihg46Xh%2FAPI.png?alt=media&#x26;token=2cf022dc-13f4-44d8-b2a5-7f0ced013294" alt=""><figcaption></figcaption></figure>

7. Hit the Create button.
8. That's it! Now you can start querying your Brex resources.

### How to uninstall

1. Select Brex on your Integrations page.
2. Navigate to the Connected Integrations tab on the opening modal and select the Brex integration you wish to remove.
3. To temporarily pause your Brex integration, click the Disable button. You can also permanently uninstall it by clicking the Delete button.&#x20;

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2FSd5G3LEXhtYSHyBTXfgV%2Fdisable-delete-integration.png?alt=media&#x26;token=019ecc38-dc45-4c84-9436-dda9bd6315e0" alt=""><figcaption></figcaption></figure>
