After this article
You will be able to connect Brex to Lumos to sync Brex users and their roles for visibility and Access Reviews.Capabilities
Required plan and roles
- Brex role: an account admin or card admin in Brex must create the API token.
- Token scope:
Users.ReadOnly, list user information. This is the only scope the integration requires. - Permission scoping: this is a read-only integration, Lumos syncs users and roles but does not provision or deprovision anything in Brex.
Read-only access vs provisioning
Is read-only possible? Yes, and it’s the only mode available. Brex authenticates with an API token scoped toUsers.ReadOnly, so every connection syncs users and roles without writing anything back to Brex.
What read-only requires. An account admin or card admin creates the token in Brex under Company settings, Developer, Settings, choosing the users.readonly data-access level. Follow the steps below to generate and enter the token.
Watch out for. The token is tied to the admin who created it, if that admin’s account is deactivated or their role is downgraded, syncs stop and you need a new token from an active account or card admin. Make sure the Use Brex Sandbox setting matches where the token was created, sandbox tokens only work against the sandbox API.
Instructions
Phase 1: Generate an API token in Brex- Log in to dashboard.brex.com as an account admin or card admin.
- Click Profile → Company settings.
- Go to Developer → Settings.
- Click Create Token, name the token, and choose the level of data access,
users.readonlyis required for this integration. - On the confirmation screen, verify the information and select Allow Access.
- Copy the token.
- Find the Brex card in your Lumos integrations (reconnect an existing card or add a new one).
- Paste the token into the API Token field.
- Enable Use Brex Sandbox only if you are using the sandbox (staging) version of the Brex API.
- Click Connect.
API Endpoints Used
Troubleshooting
Connection fails with an authorization error. Confirm the token was created with theusers.readonly data-access level and hasn’t been revoked in Company settings → Developer → Settings.
Connection fails with valid credentials. Check that the Use Brex Sandbox setting matches where the token was created: sandbox tokens only work against the sandbox API, production tokens only against production.
Users stop syncing. Brex tokens are tied to the admin who created them. If that admin’s account is deactivated or their role downgraded, generate a new token from an active account/card admin and reconnect.