Linking Brex as a source

Alpha release

This source is currently in alpha. The interface and available tables may change.

The Brex connector syncs your spend data – card and cash transactions, expenses, users, departments, locations, vendors, and budgets – into PostHog.

Adding a data source

  1. Go to the sources tab of the data pipeline section in PostHog.
  2. Click + New source and then click Link next to Brex.
  3. Next, you need an API user token from Brex. In your Brex dashboard under Settings > Developer, create a new token. Grant read access to the scopes for the data you want to sync: Transactions and Accounts, Expenses, Team, Payments, and Budgets.
  4. Back in PostHog, enter your token in the API user token field and click Next.
  5. Select the tables you want to sync, set the sync method and frequency, then click Import.

Once the syncs are complete, you can start using Brex data in PostHog.

Token expiration

Brex API user tokens expire after 90 days without API activity. If your syncs start failing with authentication errors, generate a new token in your Brex dashboard and reconnect the source.

Available tables

TableDescriptionSync method
card_transactionsCard transactions on your primary card accountIncremental
cash_transactionsCash transactions across all cash accountsIncremental
expensesExpenses submitted in BrexIncremental
usersUsers in your Brex accountFull refresh
departmentsDepartments in your organizationFull refresh
locationsLocations in your organizationFull refresh
vendorsVendors in your Brex accountFull refresh
budgetsBudgets configured in BrexFull refresh

Incremental tables sync only new or updated records on each run. Full refresh tables reload all data on each sync.

Configuration

OptionTypeRequired
API user tokenpasswordYes

Community questions

Was this page useful?

Questions about this page? or post a community question.