> ## Documentation Index
> Fetch the complete documentation index at: https://nango-marcin-get-deployments-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Brex (API Key) - How do I link my account?

# Overview

To authenticate with Brex (API Key), you will need:

1. **API Token** - A key that grants Nango permission to interact with Brex's API resources and services.

This guide will walk you through finding or generating the API Token within Brex.

### Prerequisites:

* You must have a registered Brex account with admin access

### Instructions:

#### Step 1: Finding Your API Token

1. **Log in** to your Brex [account](https://dashboard.brex.com/) as an [account admin or card admin](https://developer.brex.com/docs/roles_permissions_scopes).
2. Go to [**Developer** > **Settings**](https://dashboard.brex.com/settings/developer).
3. Click **Create Token**.
4. Create a **Name** for your token then choose what level of data access you need for your application; these are the [scopes](https://developer.brex.com/docs/roles_permissions_scopes) your token will have.

<img src="https://mintcdn.com/nango-marcin-get-deployments-docs/VQPEYczYkyQcDMBH/api-integrations/brex-api-key/auth-create-token.png?fit=max&auto=format&n=VQPEYczYkyQcDMBH&q=85&s=8744ac106c70bfc083ce440184383c2e" style={{maxWidth: "450px" }} width="1143" height="3073" data-path="api-integrations/brex-api-key/auth-create-token.png" />

5. The next screen will confirm your previous selections. Make sure it looks good, then click **Allow Access**.

<img src="https://mintcdn.com/nango-marcin-get-deployments-docs/VQPEYczYkyQcDMBH/api-integrations/brex-api-key/auth-allow-access.png?fit=max&auto=format&n=VQPEYczYkyQcDMBH&q=85&s=8dac8ec0a31ab5387cbdb7b0359f6098" style={{maxWidth: "450px" }} width="1076" height="922" data-path="api-integrations/brex-api-key/auth-allow-access.png" />

6. Your token is now created.

<img src="https://mintcdn.com/nango-marcin-get-deployments-docs/VQPEYczYkyQcDMBH/api-integrations/brex-api-key/auth-token.png?fit=max&auto=format&n=VQPEYczYkyQcDMBH&q=85&s=e5f0bfb6e3298d6cd371991ae424a620" style={{maxWidth: "450px" }} width="1150" height="744" data-path="api-integrations/brex-api-key/auth-token.png" />

#### Step 2: Enter credentials in the Connect UI

Once you have your **API Token**:

1. Open the form where you need to authenticate with Brex (API Key).
2. Enter the **API Token** in its designated field.
3. Submit the form, and you should be successfully authenticated.

<img src="https://mintcdn.com/nango-marcin-get-deployments-docs/VQPEYczYkyQcDMBH/api-integrations/brex-api-key/form.png?fit=max&auto=format&n=VQPEYczYkyQcDMBH&q=85&s=ec0fb434c6df4e7e870c06a773c84c2e" style={{maxWidth: "450px" }} width="996" height="1378" data-path="api-integrations/brex-api-key/form.png" />

You are now connected to Brex (API Key).
