---
title: Brex API Integration on Truto
slug: brex
category: Accounting
canonical: "https://truto.one/integrations/detail/brex/"
---

# Brex API Integration on Truto



**Category:** Accounting  
**Status:** Generally available

## Unified APIs

### Unified User Directory API

- **Users** — The User object represents a User.

## How it works

1. **Link your customer's Brex account.** Use Truto's frontend SDK; we handle every OAuth and API key flow so you don't need to create the OAuth app.
2. **Authentication is automatic.** Truto refreshes tokens, stores credentials securely, and injects them into every API request.
3. **Call Truto's API to reach Brex.** The Proxy API is a 1-to-1 mapping of the Brex API.
4. **Get a unified response format.** Every response uses a single shape, with cursor-based pagination and data in the `result` field.

## Use cases

- **Automate employee card provisioning from your HR platform** — HR and onboarding SaaS companies can sync employee lifecycle events to Brex, automatically provisioning corporate cards for new hires and revoking access on termination — eliminating manual finance work.
- **Enrich financial dashboards with real-time Brex spend data** — FinOps and analytics platforms can pull transaction and balance data from Brex to give CFOs a unified cash-flow view alongside other financial data sources, without requiring Brex admin credentials.
- **Sync user directories to keep Brex rosters accurate** — Any SaaS product managing employee identity or org structure can use Truto's Unified User Directory API to read and sync user data with Brex, ensuring departments, roles, and access stay consistent across systems.
- **Close the loop on procurement approvals with virtual cards** — Procurement and spend management platforms can trigger virtual card creation in Brex after a purchase is approved, tying each card to a specific vendor and budget to eliminate shadow spending.
- **Automate expense reconciliation from booking platforms** — Travel and booking SaaS products can match transactions in Brex and attach receipts or itineraries programmatically, removing the need for employees to manually submit expense reports.

## What you can build

- **Automated new-hire card issuance** — Detect new employees via Truto's Unified User Directory API and push them to Brex to provision accounts and virtual cards on day one.
- **Real-time employee offboarding lockdown** — Trigger instant card freezes in Brex when an employee's status changes to terminated in your connected user directory.
- **Cross-platform org chart sync** — Keep departments, managers, and locations in Brex aligned with the source-of-truth HR system by syncing user directory data through Truto.
- **Unified employee roster dashboard** — Surface a single view of Brex users alongside identities from other connected platforms using Truto's Unified User Directory API.
- **Budget-aware access provisioning** — Combine user directory data with Brex's budget and spend limit capabilities to assign new team members to the right department budgets automatically.

## FAQs

### What Unified APIs does Truto support for Brex today?

Truto supports Brex through the Unified User Directory API, which covers reading and syncing user (employee) data. Additional tools and Unified API coverage can be built on request based on your use case.

### How does authentication work for Brex through Truto?

Brex uses OAuth 2.0 for API access. Truto manages the full auth flow — token exchange, refresh, and storage — so your end users can connect their Brex accounts without you handling credentials directly.

### Can I access Brex transactions or expense data through Truto?

Brex's API supports transactions, expenses, budgets, and payments endpoints. These are not yet mapped to a Truto Unified API out of the box, but Truto can build custom tools and proxy access on request to cover these use cases.

### Does Truto handle pagination and rate limits for the Brex API?

Yes. Truto abstracts away pagination logic and respects Brex's rate limits automatically, so you get consistent data fetching behavior without writing API-specific retry or cursor management code.

### What user data can I read from Brex via the Unified User Directory API?

You can read standard user directory fields such as name, email, department, role, and employment status. Truto normalizes these into a unified schema so you can work with Brex user data the same way you work with any other connected directory.

### Can I write data back to Brex or is it read-only?

Brex's API supports both read and write operations across many endpoints including user creation and card management. Write support through Truto depends on the specific Unified API and tools available — contact Truto to confirm write capabilities for your use case.

## Related reading

- [How to Integrate the Brex API with Xero and QuickBooks (2026 Developer Guide)](https://truto.one/blog/developer-tutorial-how-to-integrate-brex-with-xero-and-quickbooks/) — A complete engineering guide to syncing Brex transactions into QuickBooks Online and Xero. Learn how to handle strict API rate limits, double-entry ledger mapping, and unified API architecture.
- [How to Integrate the Brex API with Your Accounting Stack: The 2026 Engineering Guide](https://truto.one/blog/how-to-integrate-the-brex-api-with-your-accounting-stack-2026-engineering-guide/) — A complete 2026 engineering guide to integrating the Brex API with accounting systems like QuickBooks, Xero, and NetSuite. Covers rate limits, ledger mapping, and unified architecture.
- [How to Connect AI Agents to Brex: Automate Expense Management via MCP](https://truto.one/blog/how-to-connect-ai-agents-to-brex-automate-expense-management-via-mcp/) — Architectural best practices for connecting AI agents to Brex via MCP. Learn how to handle OAuth token lifecycles, pagination, and strict API rate limits.
