
Step 1: Generate your API Keys
Head over to dashboard.bridge.xyz. Once logged in, click on the “API Keys” tab on the top menu bar and generate a new API key. Bridge will make your API key available only once, so make sure to immediately copy and save the key safely and securely.Your key is used to authenticate into our APIs and is highly sensitive. If it ever gets compromised, you can immediately revoke key access from our dashboard and generate a new key.
Step 2: Onboard a customer
Create a customer ID for each business. Customers will need to accept our terms of service and complete KYC. Check out this guide for a full in depth explanation on onboarding customers. The below example walks you through using a KYC link to onboard your customer.Request
Response
- Visiting the
tos_link
and accepting terms of service - Completing identity verification via the
kyc_link
Step 3: Create a wallet
Create a wallet for your customer to hold treasury funds in USDB. The below example explains how to create a Bridge wallet associated with a customer object.Request
Response
Use the
bridge_wallet_id
when referencing the wallet in other Bridge APIs.Step 4: Create a virtual account
Create a USD or EUR account for the customer. Provide them with the bank instructions so they can receive payments. Deposits are converted to stablecoins and held in their wallet. Use the Virtual Accounts API to provision permanent fiat deposit addresses for your customers. You define thesource
currency for the account and configure the destination
to be a Bridge wallet.
Bridge handles the fiat-to-crypto conversion and sends the funds on-chain automatically.
Request
Response
Sharing Deposit Instructions
Once a Virtual Account is created, use thesource_deposit_instructions
object in the response to share the fiat deposit details with your customer. Funds sent to those details will be automatically converted and delivered to the crypto destination you specified.
Step 5: Create an external account
Add and store a vendor’s bank account details to send payments from the customer. You can add external fiat accounts through our External account API using the following request.Request
Response
Step 6: Use the Transfers API
Use the Transfers API to move funds from the customer’s wallet to a vendor’s bank account. You will need to call the API for each payment.Request