
Connectors / Finance · HTTP Connector
Automate Brex with Tray.ai
Create a card, upload a receipt and create a vendor in Brex, and start a workflow when Brex sends “Expense payment updated”.
What can you do with Brex on Tray.ai?
Brex is a spend management platform that combines corporate cards, expense tracking, bill pay and budgets for finance teams. Tray.ai connects to Brex through the HTTP Connector, so your workflows can call the Brex API alongside the rest of your stack.
- When Brex sends “Expense payment updated”, post the expense to your accounting system so the books stay current.
- When Brex sends “Transfer failed”, alert finance in your team chat and open a task to retry it.
- Create a card in Brex for each new hire as part of your employee onboarding workflow.
- Upload a receipt to the matching Brex expense as soon as it lands in your inbox.
- Connects through
- HTTP Connector
- Authentication
- A bearer token
- Base URL
- https://api.brex.com
Set it up
Connect Brex to Tray.ai
Each step uses Brex's own API details, from its documentation.
Step 1
Save Brex's API token
Save the token Brex issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token stays out of the workflow and out of the logs.
Step 2
Point the HTTP Client at the API
Add an HTTP Client step and use https://api.brex.com as the base URL. Or paste a cURL example from Brex's API docs, and Tray.ai fills in the method, URL, and headers.
Step 3
Start with “List users”
It's one of 24 documented actions, under Users. The response comes back as data the next step can map into your other apps.
Step 4
Start workflows from Brex events
Give Brex the URL of a Tray.ai webhook trigger. “Expense payment updated” can then start a workflow, and so can 4 other events.
Workflows to build with Brex
Each one uses actions and events from Brex's own API documentation.
Send Brex accounting records to NetSuite
When
Accounting record ready for export
Then
- Create the matching journal entry in NetSuite
- Post a confirmation to the finance channel in Slack
Give new BambooHR employees a Brex card
When
An employee is added in BambooHR
Then
- Invite a user with the new hire's details
- Create a card with their department's limit
With BambooHR
Terminate Brex cards when someone leaves in Okta
When
A user is deactivated in Okta
Then
- List cards for the departing employee
- Terminate a card for each one they hold
With Okta
Apps you can build on Brex data
Internal tools your team can build with an AI assistant, each one using Brex calls from its API documentation.
Expense review board
Lists Brex expenses by department and lets a manager update an expense or add a missing receipt.
Card control panel
Shows every card with its holder and lets finance lock or terminate a card.
Failed transfer tracker
Lists failed and processed transfers as they happen so finance can follow up on each vendor payment.
Give your AI agents Brex tools
Build an MCP server on Brex in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- List users
- List cards
- List expenses
- List vendors
- List transfers
- List departments
- Get a user
- Invite a user
What the Brex API covers
6 resources and 24 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.
Users
- List users
- Get a user
- Invite a user
- Update a user
Cards
- List cards
- Create a card
- Update a card
- Lock a card
- Terminate a card
Expenses
- List expenses
- Get an expense
- Update an expense
- Upload a receipt
Vendors
- List vendors
- Create a vendor
- Update a vendor
- Delete a vendor
Transfers
- List transfers
- Get a transfer
- Create a transfer
Departments
- List departments
- Create a department
- Update a department
- Delete a department
Events Brex can send to a Tray.ai webhook trigger
- Expense payment updated
- Transfer processed
- Transfer failed
- User updated
- Accounting record ready for export
Checked against Brex's own documentation on 2026-10-22
How Tray.ai makes this work
Brex plugs into the whole Tray.ai platform
Intelligent Integration
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn more →Agent Builder
Build AI agents that read, write, and take action in Brex — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose Brex actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →Tray Helix
Build apps on Brex data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn more →Guides that use Brex
Step by step builds with copy-paste prompts for your coding assistant, and what it takes to run each one in production.
How to build
IntegrationExpense and card feed sync
Match card transactions to receipts, code from the merchant instead of the claimant, and chase the missing ones before month end.
How to build
AutomationShadow AI discovery
Find the AI tools nobody registered, from expenses, SSO and DNS, then route to a path rather than a ban.
How to build
AutomationBank reconciliation automation
Match on rules that learn, keep the unmatched visible and ageing, and never write a plug.
How to build
AutomationFinancial close automation
Model the dependencies instead of the checklist, pull the data before anybody asks, and show the critical path instead of a percentage.
More finance apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every finance connector →
Frequently asked questions
What can a Tray.ai workflow do in Brex?
+
The Brex API documents 24 actions across 6 resources (Users, Cards, Expenses, Vendors, Transfers, Departments). For example: List users; List cards; List expenses. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Brex?
+
The Brex API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which Brex events can start a Tray.ai workflow?
+
Brex sends 5 events to a webhook URL, for example: Expense payment updated; Transfer processed; Transfer failed; User updated; Accounting record ready for export. A Tray.ai webhook trigger receives them and starts a workflow.
See Brex working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks — someone from our team will be in touch soon.