Brex
Finance API tokenRead transactions, cards, budgets and expenses from Brex, and act on them, in any Windmill script, flow or app.
Set up in 3 steps
Create an API token
In the Brex dashboard, open Developer then Create token, and grant only the scopes your scripts need. Copy it — it is shown only once.
Add the resource in Windmill
Open Resources, add a resource of type brex, and paste the token.
Run your first script
Fork any script below and read before writing anything. There are dozens here, so search by the verb you need.
Scripts
Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.
Invite User
Invite User
Create Card
Create Card
List Transactions for Primary Card Account
List Transactions for Primary Card Account
Set Limit for User
List Transactions for Selected Cash Account
Set Limit for User
List Transactions for Selected Cash Account
Update user
Update card
Update an expense
Update Spend Limit
Update Budget Program
Update Budget
Unlock card
Terminate card
Set limit for the user
Lock card
Lists vendors
Lists transfers
Lists linked accounts
List users
List titles
List referrals
List locations
List legal entities
List expenses
List departments
Resource type
brex — the shape of the credential every script on this page expects.
| Field | Type | Required | What it is |
|---|---|---|---|
| token | string | Yes | API token retrieved from the settings page. |
Questions
This reads company spend
It does. Scope the token to what a script needs and keep the resource in a folder only the right people can read.
A call returns 403 on a working token
Brex fixes scopes when the token is created and they cannot be widened. Create a new token with the scope the script needs.
Is my token stored on the hub?
Never. It lives only in your own Windmill workspace, encrypted at rest.