- 86 typed API operations
- 18 synced entities (
budgets,cards,cashAccounts,company,departments,expenses, and 12 more) for fast.search()/.list()
Setup
1
Install
2
Add the plugin
corsair.ts
corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
- OAuth 2.0
No setup required yet. When you make your first request as a tenant, Corsair prompts for the API key.More: API Key
4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
accounts.getCash
budgets.archive
Query synced data
Synced entities supporttenant.brex.db.<entity>.search() and .list(): budgets, cards, cashAccounts, company, departments, expenses, fields, legalEntities, locations, referrals, spendLimits, titles, transactions, transfers, trips, users, vendors, webhooks.
See Database for filters and operators.
What’s next
API reference
Every
brex.api.* operation with input and output types.Database
Synced entities, search filters, and operators.
Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.