Payments, Deposits, Cards
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:
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/cards`,
headers: {
Authorization: `Bearer ${this.brex.$auth.oauth_access_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})