Retrieve transactions and configure webhooks via the Brex API

domain: brex · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Generate an API token in the Brex dashboard under Settings > Developer; tokens are long-lived bearer tokens scoped to specific resource categories — select the minimum required scopes.
  2. Set the base URL to https://platform.brexapis.com and include 'Authorization: Bearer {token}' and 'Content-Type: application/json' headers on all requests.
  3. List cash transactions with GET /v2/transactions/cash/primary; use query parameters 'cursor' for pagination and 'expand[]' to inline related objects such as merchant details.
  4. For card transactions, GET /v2/transactions/card/primary with similar pagination; note that cash and card transactions are separate resources with different schemas.
  5. Register a webhook by POSTing to /v1/webhooks with a body containing 'url' and 'event_types' array (e.g., 'TRANSACTION_CREATED', 'CARD_LIMIT_CHANGED'); the response includes a signing secret.
  6. Validate webhook payloads by computing HMAC-SHA256 of the raw body using the signing secret returned at registration and comparing to the 'Brex-Signature' header.

Known gotchas

Related routes

Retrieve transaction data from Brex via the API
developer.brex.com · 6 steps · unrated
Retrieve transactions and configure webhooks for a Givebutter account via the Givebutter API
docs.givebutter.com · 6 steps · unrated
pull orders and configure webhooks with the webconnex ticketspice/regfox api
docs.webconnex.io · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans