About Brex
Brex is a corporate card and spend-management platform. Serval’s Brex integration connects with a single Brex user API token and covers nine areas of the Brex platform - team, expenses, budgets, transactions, payments, accounting, travel, custom fields, and onboarding - so your workflows can read and update Brex data whenever they run. Everything happens live against Brex; there is nothing to import or schedule. Authentication: Brex user API token, pasted into Serval and sent as a secure bearer credential on every request. There is no OAuth sign-in flow. Data sync: On demand only. Serval contacts Brex exclusively when a workflow step runs - there is no background sync, no polling schedule, and no webhooks from Brex.What the Brex integration enables
Get your credentials
Serval connects to Brex with a user API token that you generate in the Brex dashboard. The token’s enabled permission scopes determine exactly what Serval can read or write - nothing more. See the Brex authentication documentation for background, or the Brex Developer Portal for the full platform reference.Sign in to Brex
Open the developer settings
Create a token
Select permission scopes
Allow access and copy the token
Connect in Serval
Add the Brex integration
Paste your token
Save the connection
Run the health checks
Verifying the connection
The Brex integration ships four health checks. Run them right after connecting and after any edit to the connection. List Brex Users - confirms the token is valid and can list the users in your Brex account.- Success: “Successfully listed users from Brex (sample size: [number])”
- Failure: “Unable to list users from Brex. Please verify your API token is valid and has the ‘users.read’ scope enabled.”
- Success: “Successfully listed cards from Brex (sample size: [number])”
- Failure: “Unable to list cards from Brex. Please verify your API token has the ‘cards.read’ scope enabled.”
- Success: “Successfully listed card accounts from Brex (count: [number])”
- Failure: “Unable to list card accounts from Brex. Please verify your API token has the ‘accounts.card.read’ scope enabled.”
- Success: “Successfully listed departments from Brex (sample size: [number])”
- Failure: “Unable to list departments from Brex. Please verify your API token has the ‘departments.read’ scope enabled.”
Gotchas and troubleshooting
Always re-enter the full token when editing the connection
Always re-enter the full token when editing the connection
A bad token is not caught when you connect
A bad token is not caught when you connect
Serval can only do what the token's scopes allow
Serval can only do what the token's scopes allow
Brex lists return one page at a time
Brex lists return one page at a time
The token is only ever sent to Brex's official hosts
The token is only ever sent to Brex's official hosts
Need help? Contact support@serval.com for assistance with your Brex integration.

