๐ Get started in 10(ish) minutes
By the end of these few sections, you'll be up and running with Belvo ๐.
So, want to get started using Belvo? We've got you covered. Over the next few sections, we'll get you set up with API keys, a Postman collection, and run you through a simple flow with our API so you can see how easy it is to access a whole world of information!
Prerequisites
In this getting started guide, we make use of two pieces of software that you should create free accounts for:
Once you create these accounts, you can go ahead with this guide!
Create a Belvo account
To get started with Belvo, you need to create a Belvo account and generate your API keys.
- Go to the Belvo signup page and fill in the required fields.
- Check your inbox for an email from us and confirm your email address.
The subject line will be: [Belvo] Please Confirm Your Email Address
โณ๏ธ Awesome! Once you click on the link in the email, you'll be redirected to the Belvo dashboard! In the dashboard, you can set up your account, check your activity logs, and generate your Belvo API keys.
Generate your API keys and fork Postman collection
Now that you have an account - let's generate some API keys to start working with Belvo.
Belvo environments
Belvo offers two environments:
- Sandbox: a test environment with dummy data that you can use for unlimited development and testing.
- Production:a live environment used with real connections to institutions. If you would like access to our Production environment, you will need to contact our support team so that we can get you all set up.
For each environment, you need separate API keys.
To generate your API keys:
-
In the Sandbox environment, go to the Developers - API Keys tab of the dashboard. We recommend that you use the sandbox environment to play around with our API.
-
Click on Generate API Keys, which will automatically generate your API keys.
-
In the pop-up, click the Run in Postman button. This will automatically fork our Postman Collection to your private workspace and populate the
secretId
andsecretPassword
.For security reasons, we only show theย secretPasswordย once in the dashboard after the generation. Make sure you store it securely to be able to retrieve it later. If you lose your secretPassword, you will need to reset your API keys.
-
You will be redirected to Postman will need to:
-
Give a name to the fork, such as
My_First_Belvo_Fork
. -
Select in which workspace the collection should be saved to (by default, you should select My Workspace).
-
Click Fork collection.
-
โณ๏ธ Done! Belvo's postman collection will be copied into your workspace and you will be able to easily make API calls to retrieve information!
Postman Environments
When you fork the collection, Belvo automatically creates the Postman environment for you with the
baseUrl
,secretId
, andsecretPassword
. Then, when you want to use our API, just look for an environment that starts with Belvo - sandbox (xxx).
Already got API keys and just want the collection?
If you already have your API keys and just want to fork our collection, simply click the Run in Postman button below! (Note the link below does not open in a separate tab. We recommend you use Ctrl / Cmd and click on the link to open in a new tab.)
Test that it works!
Just to make sure you have set everything up correctly, let's make sure that you can list all the institutions in our Sandbox environment.
- Make sure that you select your Belvo - sandbox (xxx) environment.
- Go to Belvo API Docs โ Core Aggregation Resources โ Institutions โ Get List all institutions.
- Click Send.
- If everything is correctly set up, you should see a whole host of institutions appear!
โณ๏ธ And you're done! Now, let's set up Pipedream!
Add your Belvo API keys to Pipedream
To add your Belvo API keys to Pipedream:
-
Log in to your Pipedream account.
-
Click New Variable and in the pop-up window
-
For the Key, enter
secretIdSandbox
. -
For the Value, enter the Belvo secretId you generated in your dashboard.
-
For the Description, enter
My Sandbox Belvo secretId
. -
Check the Configure as secret box.
-
Click Create.
-
-
Click New Variable again and in the pop-up window
-
For the Key, enter
secretPasswordSandbox
. -
For the Value, enter the Belvo secretPassword you generated in your dashboard.
-
For the Description, enter
My Sandbox Belvo secretPassword
. -
Check the Configure as secret box.
-
Click Create.
-
โ Done! Now when we fork Belvo's Webhook Workflow, your API keys will automatically be added to any flow.
Forking Belvo's Webhook Workflow
To fork Belvo's Webhook Workflow:
- Click on this link to fork the workflow: Fork Belvo Webhook Worklow.
- Provide a Project Name, such as
Belvo_Integration_Sandbox
, and click Create project and continue. - Provide a Workflow Name, such as
Belvo_Webhook_Workflow_Sandbox
, and click Create Workflow.
โ๏ธ Done! You now have Belvo's Webhook Workflow in your Pipedream account. Now we just need to do generate the Webhook URL so that you can add it to your Belvo account!
Generate the Webhook URL
To generate the Webhook URL for the Belvo Webhook Workflow:
-
In the workflow:
- Click on the trigger (first item in the workflow).
- In the right-hand pop-up, click Save and continue.
-
Copy the generated webhook URL and save it.
-
Click Deploy.
โ๏ธ Done! You now have a webhook URL that you can add to your Belvo account!
Adding the webhook URL to Belvo
So now that you've created a Webhook URL, let's add it to your Belvo account:
-
Sign in to your Belvo Dashboard.
-
Choose the Sandbox environment. For initial testing, and throughout this guide, we use the Sandbox environment.
-
Go to Developers -> Webhooks.
-
Click +New webhook.
-
Fill in theย New webhook form with the required information.
- URL: the URL to receive the webhook notifications.
- Authorization: an optional bearer token to use if your URL is protected.
-
Click Create webhook.
โ Done! You've now created a webhook and can start creating links and receiving events!
Testing the flow
So now that we have everything set up, we can test the flow to make sure everything is running smoothly!
-
In Postman, make sure you select your Belvo Sandbox environment.
-
Go to Belvo API Docs -> Core Aggregation Resources -> Links -> Register a new link.
-
In the Body tab, copy and paste the following code:
{ "institution": "planet_mx_employment", "username": "BLPM951331IONVGR54", "external_id": "getting_started_link", "access_mode": "single", "fetch_resources": ["OWNERS", "EMPLOYMENT_RECORDS"] }
-
Click Send.
Now in Pipedream, go to the Belvo_Webhook_Workflow_Sandbox and see the magic happen! (Note, the first time you run this flow the webhook might take a minute or two to arrive as Belvo performs validation on the URL).
Once you see webhook events coming in, you can click on them and in the right-hand panel, scroll down to see your data!
โ And that's it! You have just created a webhook flow and can retrieve data from Belvo asynchronously. That's fantastic! You can use this flow with any of our aggregation or enrichment products:
- Banking
- Employment
- Fiscal
- Enrichment
Updated 2 months ago