Back to Integrations
integrationBrex node
HTTP Request
integrationFlagship node
HTTP Request

Brex and Flagship integration

Save yourself the work of writing custom integrations for Brex and Flagship and use n8n instead. Build adaptable and scalable Finance & Accounting, and Development workflows that work with your technology stack. All within a building experience you will love.

How to connect Brex and Flagship

  • Step 1: Create a new workflow
  • Step 2: Add and configure nodes
  • Step 3: Connect
  • Step 4: Customize and extend your integration
  • Step 5: Test and activate your workflow

Step 1: Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Brex and Flagship integration: Create a new workflow and add the first step

Step 2: Add and configure Brex and Flagship nodes using the HTTP Request nodes

Add the HTTP Request nodes onto your workflow canvas. Set credentials for Brex and Flagship as appropriate using generic authentication methods. The HTTP Request nodes make custom API calls to Brex and Flagship to query the data you need. Configure nodes one by one: input data on the left, parameters in the middle, and output data on the right.

Brex and Flagship integration: Add and configure Brex and Flagship nodes

Step 3: Connect Brex and Flagship

A connection establishes a link between Brex and Flagship (or vice versa) to route data through the workflow. Data flows from the output of one node to the input of another. You can have single or multiple connections for each node.

Brex and Flagship integration: Connect Brex and Flagship

Step 4: Customize and extend your Brex and Flagship integration

Use n8n's core nodes such as If, Split Out, Merge, and others to transform and manipulate data. Write custom JavaScript or Python in the Code node and run it as a step in your workflow. Connect Brex and Flagship with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

Brex and Flagship integration: Customize and extend your Brex and Flagship integration

Step 5: Test and activate your Brex and Flagship workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Brex and Flagship or vice versa. Easily debug your workflow: you can check past executions to isolate and fix the mistake. Once you've tested everything, make sure to save your workflow and activate it.

Brex and Flagship integration: Test and activate your Brex and Flagship workflow

Build your own Brex and Flagship integration

Create custom Brex and Flagship workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Supported API Endpoints for Brex

To set up Brex integration, add the HTTP Request node to your workflow canvas and authenticate it using a generic authentication method. The HTTP Request node makes custom API calls to Brex to query the data you need using the API endpoint URLs you provide.

List referrals
Returns referrals created, excluding expired ones.
GET
get/v1/referrals
Create referral
This creates new referrals and returns an identifier with a unique application link.
POST
post/v1/referrals
Get referral
Returns a referral object by ID if it exists.
GET
/get/v1/referrals/{id}
Upload document
Create a new document upload using a presigned S3 URL.
POST
post/v1/referrals/{id}/document_upload

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Brex official documentation to get a full list of all API endpoints and verify the scraped ones!

List card accounts
This endpoint lists all accounts of card type.
GET
/v2/accounts/card
List primary card account statements
This endpoint lists all finalized statements for the primary card account.
GET
/v2/accounts/card/primary/statements
List cash accounts
This endpoint lists all the existing cash accounts with their status.
GET
/v2/accounts/cash
Get primary cash account
This endpoint returns the primary cash account with its status.
GET
/v2/accounts/cash/primary
Get cash account by ID
This endpoint returns the cash account associated with the provided ID with its status.
GET
get/v2/accounts/cash/{id}
List cash account statements
This endpoint lists all finalized statements for the cash account by ID.
GET
get/v2/accounts/cash/{id}/statements

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Brex official documentation to get a full list of all API endpoints and verify the scraped ones!

List users
This endpoint lists all users.
GET
/v2/users
Get current user
This endpoint returns the user associated with the OAuth2 access token.
GET
/v2/users/me
Get user
This endpoint gets a user by ID.
GET
/v2/users/{id}
Get limit for the user
This endpoint gets the monthly limit for the user including the monthly available limit.
GET
/v2/users/{id}/limit
Set user limit
This endpoint sets a limit for a user.
POST
post/v2/users/{id}/limit

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Brex official documentation to get a full list of all API endpoints and verify the scraped ones!

List locations
This endpoint lists all locations.
GET
get/v2/locations
Create location
This endpoint creates a new location.
POST
post/v2/locations
Get location
This endpoint gets a location by ID.
GET
get/v2/locations/{id}

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Brex official documentation to get a full list of all API endpoints and verify the scraped ones!

List departments
This endpoint lists all departments.
GET
get/v2/departments
Create department
This endpoint creates a new department.
POST
post/v2/departments
Create department
This endpoint creates a new department.
POST
/v2/departments
Get department
This endpoint gets a department by ID.
GET
/v2/departments/{id}

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Brex official documentation to get a full list of all API endpoints and verify the scraped ones!

List titles
This endpoint lists all titles.
GET
/v2/titles
Get title
This endpoint gets a title by ID.
GET
/v2/titles/{id}

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Brex official documentation to get a full list of all API endpoints and verify the scraped ones!

List cards
Lists all cards by a user_id.
GET
/v2/cards
Create card
Creates a new card requiring certain fields based on card type.
POST
post/v2/cards
Get card
Retrieves a card by ID.
GET
/v2/cards/{id}
Lock card
Locks an existing, unlocked card.
POST
post/v2/cards/{id}/lock
Get card number
Retrieves card number, CVV, and expiration date of a card by ID.
GET
get/v2/cards/{id}/pan
Create secure email to send card number
Creates a secure email to send card number, CVV, and expiration date of a card by ID to the specified email.
POST
post/v2/cards/{id}/email
Secure email card
Sends a secure email to a recipient regarding a card.
POST
/v2/cards/{id}/secure_email
Terminate card
Terminates an existing card and notifies the card owner.
POST
/v2/cards/{id}/terminate
Unlock card
Unlocks an existing card.
POST
/v2/cards/{id}/unlock

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Brex official documentation to get a full list of all API endpoints and verify the scraped ones!

List vendors
This endpoint lists all existing vendors for an account.
GET
/v1/vendors
Get vendor
This endpoint gets a vendor by ID.
GET
get/v1/vendors/{id}
Update vendor
Updates an existing vendor by ID.
PUT
put/v1/vendors/{id}
Delete vendor
This endpoint deletes a vendor by ID.
DELETE
delete/v1/vendors/{id}

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Brex official documentation to get a full list of all API endpoints and verify the scraped ones!

Create transfer
This endpoint creates a new transfer.
POST
post/v1/incoming_transfers

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Brex official documentation to get a full list of all API endpoints and verify the scraped ones!

List transfers
This endpoint lists existing transfers for an account.
GET
get/v1/transfers
Create transfer
This endpoint creates a transfer between accounts.
POST
/v1/transfers
Get transfer
This endpoint gets a transfer by ID.
GET
/v1/transfers/{id}

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Brex official documentation to get a full list of all API endpoints and verify the scraped ones!

List transactions
This endpoint lists all settled transactions for all card accounts.
GET
/v2/transactions/card/primary
List transactions
This endpoint lists all transactions for the cash account with the selected ID.
GET
/v2/transactions/cash/{id}

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Brex official documentation to get a full list of all API endpoints and verify the scraped ones!

Supported API Endpoints for Flagship

To set up Flagship integration, add the HTTP Request node to your workflow canvas and authenticate it using a generic authentication method. The HTTP Request node makes custom API calls to Flagship to query the data you need using the API endpoint URLs you provide.

List resource
Retrieve all decision API entries.
GET
/api/v2/decision
Update resource
Update an existing entry in the decision API.
PUT
/api/v2/decision/{id}

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Flagship official documentation to get a full list of all API endpoints and verify the scraped ones!

Create campaign
This endpoint retrieves all the campaigns that correspond to the specified user and context attributes.
POST
/v2/<ENVIRONMENT_ID>/campaigns
Get campaign assignment
This endpoint retrieves the assignment of your visitor ID with a specific context to the specified campaign ID.
POST
/v2/<ENVIRONMENT_ID>/campaigns/<CAMPAIGN_ID>
Get campaigns of the account environment
Retrieves campaigns linked to the account environment.
GET
/reference/95de4e7d4ec4b9b27d2b553fef5c9158-1
Create a campaign
Creates a new campaign within the account environment.
POST
/reference/262164e9902986956d4f008ecc296d9c-1
Get one campaign
Fetches details of a specific campaign.
GET
/reference/fdfe1f898dc7962ec0681ec7b2c28039-1
Delete a campaign
Deletes a specific campaign from the account environment.
DELETE
/reference/1a331f011981919d31c616c73856b948-1
Update a campaign
Updates the attributes of a specified campaign.
PATCH
/reference/e3e6aaee25528da22b390f4af3c93482-1
Toggle campaign state
Toggle the state of a campaign.
PATCH
/reference/adf135160847c38ce9ecc8397f4945b2-1

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Flagship official documentation to get a full list of all API endpoints and verify the scraped ones!

Create flag assignment
This endpoint assigns a user to a variation for campaign targeting.
POST
/v2/<ENVIRONMENT_ID>/flags
Get flags
Retrieve all flags associated with the account.
GET
/reference/2d21ba23be976e0dcafc39818a41067c-1
Retrieve flags
Retrieves feature flags for the current visitor.
GET
/docs/retrieving-flags
Fetch flag
Fetch flag from the Flagship platform.
GET
/fetchFlags
Get flag value
Retrieves a flag named 'yourFlagKey'.
GET
/getFlag/yourFlagKey
Expose flag
Notifies Flagship that the visitor has been exposed to the flag.
POST
/exposeFlag
Get all flags
Retrieves all visitor's flags as a collection.
GET
/getFlags
List flags
Retrieves all visitor's flags.
GET
/api/v1/flags
Get flag
Retrieves a flag named 'yourFlagKey'.
GET
/api/v1/flags/yourFlagKey
Expose flag
Directly expose the flag to Flagship without reading the value.
POST
/api/v1/flags/yourFlagKey/expose
Expose all flags
Expose all of the flags in the collection.
POST
/api/v1/flags/exposeAll

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Flagship official documentation to get a full list of all API endpoints and verify the scraped ones!

Create activation
Activates a variation for a visitor in a specific environment.
POST
/v2/activate

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Flagship official documentation to get a full list of all API endpoints and verify the scraped ones!

Get projects of the account
Fetches a list of projects associated with the account.
GET
/reference/056fa0955173da757711663c5e0365ae-1
Create a project
Creates a new project in the account.
POST
/reference/9c2fa3f5eeb6b5de749560ab7a799fda-1
Get one project
Fetches details of a specific project.
GET
/reference/80bfd9b7a2cd0f116dd43fc4ed60dfd8-1
Delete a project
Deletes a specified project from the account.
DELETE
/reference/934311b13024cb0dd7eebfaf948a2d70-1
Update a project
Updates the properties of an existing project.
PATCH
/reference/d0e24fcfb70fc12f1385915850f2029e-1
Toggle project state
Toggles the state of an existing project.
PATCH
/reference/239988fe629da89b52a9fa7ffdd4d3a8-1

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Flagship official documentation to get a full list of all API endpoints and verify the scraped ones!

Get variations
Retrieve variations of a specified variation group.
GET
/reference/7bd5dfd478e6e9160083f6cc5a83c156-1
Create variation
Add a new variation to a specified variation group.
POST
/reference/f052ad34ef1e817660802140f0e9a8af-1
Delete variation
Deletes a variation by its identifier.
DELETE
/reference/b6a54e3f308a61a9786a4156a3d390ae-1
Update variation
Updates an existing variation.
PATCH
/reference/ce18e2b90f668a60cd211d5cbcde0abc-1
Get one variation
Retrieves a specific variation by its ID.
GET
/reference/79e6c992d1a75245647ee741a9c61fc6-1

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Flagship official documentation to get a full list of all API endpoints and verify the scraped ones!

Get users
Retrieve a list of users within the account environment.
GET
/reference/0aeb678fc30329a5b3f1c04d1d29520b-1
Update users
Update the details of users in the account environment.
PUT
/reference/2dcfe3b154f38137fc43551187695136-1

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Flagship official documentation to get a full list of all API endpoints and verify the scraped ones!

Get targeting keys
Retrieve a list of targeting keys associated with the account.
GET
/reference/fe893f1764b5194d312e572c51054f24-1

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Flagship official documentation to get a full list of all API endpoints and verify the scraped ones!

Get goals
Retrieve all goals associated with the account environment.
GET
/reference/d38adaab9d1304e9c95820489139ff64
Delete goal
Deletes a goal by its identifier.
DELETE
/reference/a5e50aa5cfe5a0ce7be4ad0075da1be3
Update goal
Updates an existing goal.
PATCH
/reference/4a2cc8b82898811874e71db0334d16db
Get one goal
Retrieves a single goal by its identifier.
GET
/reference/c9f10c3487c1d66d7d679609c9b32ad5
Create goal
Creates a new goal.
POST
/reference/3b7f536ce89b1910497e73ebd2fd941f

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Flagship official documentation to get a full list of all API endpoints and verify the scraped ones!

Generate token
Generate a new access token for the account.
POST
/{ACCOUNT_ID}/token?expires_in=0
Generate token with expiration
Generate a token with a specific expiration time.
POST
/{ACCOUNT_ID}/token?expires_in=1800
Validate token
Check if an access token is valid.
GET
/token?access_token={ACCESS_TOKEN}

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Flagship official documentation to get a full list of all API endpoints and verify the scraped ones!

Create visitor
Creates a new visitor in the system.
POST
/docs/creating-a-visitor
Manage visitor consent
Manages the consent settings for a visitor.
PUT
/docs/managing-visitor-consent
Update visitor context
Updates the context information of an existing visitor.
PATCH
/docs/updating-the-visitor-context

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Flagship official documentation to get a full list of all API endpoints and verify the scraped ones!

Track data
Tracks specific data points related to a visitor's activity.
POST
/docs/tracking-data

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Flagship official documentation to get a full list of all API endpoints and verify the scraped ones!

Get variation groups
Retrieve the variation groups of the campaign.
GET
/reference/e9c0ded78aab979d89652b07320a017c-1
Update variation group
Updates an existing variation group.
PATCH
/reference/9c67aceba6ba933d79a04e6306a6a960-1
Delete variation group
Deletes a variation group.
DELETE
/reference/57f1560a170dc1735d4d63b609402935-1
Get one variation group
Retrieves a single variation group by ID.
GET
/reference/790dd2784584937896abb8904e11dc48-1
Create variation group
Creates a new variation group.
POST
/reference/0c0e2dfd24f4aa121fe04561393a3f46-1

These API endpoints were generated using n8n

n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Flagship official documentation to get a full list of all API endpoints and verify the scraped ones!

Brex and Flagship integration details

Use case

Save engineering resources

Reduce time spent on customer integrations, engineer faster POCs, keep your customer-specific functionality separate from product all without having to code.

Learn more

FAQs

  • Can Brex connect with Flagship?

  • Can I use Brex’s API with n8n?

  • Can I use Flagship’s API with n8n?

  • Is n8n secure for integrating Brex and Flagship?

  • How to get started with Brex and Flagship integration in n8n.io?

Looking to integrate Brex and Flagship in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Brex with Flagship

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon