Brex

Payments, Deposits, Cards

Go to site

Brex API Integrations

Build and run workflows using the Brex API. Use 1000s of source-available triggers and actions across 1200+ apps. Or write custom code to integrate any app or API in seconds.

Overview

The Brex API enables developers to programmatically manage their Brex account and cardholders. With the API, developers can create and manage cardholders, retrieve transactions, and more.

Here are some examples of what you can build with the Brex API:

  • A tool to help manage your Brex account and cardholders
  • A tool to help retrieve transactions
  • A tool to help create and manage cardholders
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    brex: {
      type: "app",
      app: "brex",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://platform.brexapis.com/v2/users/me`,
      headers: {
        Authorization: `Bearer ${this.brex.$auth.oauth_access_token}`,
      },
    })
  },
})

Choose an API to Connect with Brex API

1
-
12
of
1200+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Beta
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Beta
Data Stores
Data Stores
Use Pipedream Data Stores to manage state throughout your workflows.
Telegram Bot
Telegram Bot
Telegram is a cloud-based instant messaging and voice over IP service
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular apps like ChatGPT and DALL·E 2.
Google Sheets
Google Sheets
With Google Sheets, you can create, edit, and collaborate wherever you are
Discord
Discord
Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
GitHub
GitHub
Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.
Formatting
Formatting
Pre-built actions to make formatting and manipulating data within your workflows easier.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Create Card with Brex API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Brex
 
Try it
Send Message (Advanced) with Discord Webhook API on New Transfer Event (Instant) from Brex API
Brex + Discord Webhook
 
Try it
Create Card with Brex API on New Item in Feed from RSS API
RSS + Brex
 
Try it
Create Card with Brex API on New Message from Discord API
Discord + Brex
 
Try it
Create Card with Brex API on New Message In Channels from Slack API
Slack + Brex
 
Try it
New Transfer Event (Instant) from the Brex API

Emit new event for new failed or processed events

 
Try it
Create Card with the Brex API

Creates a new card. See the docs here.

 
Try it
Invite User with the Brex API

Invites a new user as an employee. See the docs here.

 
Try it
List Transactions for Primary Card Account with the Brex API

Lists all settled transactions for the primary card account. See the docs here.

 
Try it
List Transactions for Selected Cash Account with the Brex API

Lists all transactions for the specified cash account. See the docs here.

 
Try it
Set Limit for User with the Brex API

Sets the monthly limit for a user. See the docs here.

 
Try it

Authentication

Brex uses OAuth authentication. When you connect your Brex account, Pipedream will open a popup window where you can sign into Brex and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Brex API.

Pipedream requests the following authorization scopes when you connect your account:

openidoffline_accessuserscardslocationsdepartmentsvendorstransactions.card.readonlytransactions.cash.readonlyaccounts.cash.readonlytransfershttps://onboarding.brexapis.com/referrals
OAuth Request Configurations:
  1. authorization
    GEThttps://accounts.brex.com/oauth2/v1/auth?client_id={{oauth.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}
  2. accessToken
    POSThttps://accounts.brex.com/oauth2/v1/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}
  3. refreshToken
    POSThttps://accounts.brex.com/oauth2/v1/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=refresh_token&refresh_token={{oauth.refresh_token}}