Skip to main content
WarningThis guide is meant to be followed by a backend. Your Secret Key should never be sent to the frontend.
Before we can start using Fintoc, you need to get your Fintoc account’s Secret Key. It will be used throughout this guide, so make sure to follow the guide on how to get your API keys to get your live Secret Key. To get the movements from your bank account, first you need to create a Link and get its Link Token. You can do this from the dashboard, following this guide. Once you have your Link Token, we can start!
TipBecause we will need to use our Secret Key and a Link Token, some sensitive information needs to be replaced by you to make the code from this guide fully functional. From now on, we will write FINTOC_SECRET_KEY to represent the Secret Key that you need to get and LINK_TOKEN to represent the Link Token required for any of this code to work.

Tooling

This guide shows how to use the Fintoc API using the Python SDK, the Node SDK and cURL. The cURL tool can be replaced with any tool that allows HTTP requests to be issued through the terminal and shell scripts (for example, Wget). The SDKs can be installed with the following commands:
Python
Node
When using any of the SDKs, please make sure that you’re using the latest version. You can find the changelog and versions of the SDKs here (Python SDK) and here (Node SDK).

Getting the correct account

As the guide for creating a Link from the dashboard mentions, a Link represents the username/password combination of the bank. This means that a Link might have more than one account (for example, maybe you have a checking account and a savings account under the same username/password combination). Let’s decide which of our accounts has the information that we need! First, let’s list all of our accounts:
Node
cURL
The output to each of the snippets above should look something like this:
Python
Node
cURL
In our case, we want to use the data from our checking account, so we now know that we need to use the account with id acc_O38ioEA4QejjnGeb to search for our movements. The id of your account should be different, but it should also start with acc_.
TipFrom now on, we will write ACCOUNT_ID to represent the id of the account that we want to use.

Getting the movements

Now that we know the id of the account that we want to use, we just need to use it to get the movements!
Node
cURL
The output to each of the snippets above should look something like this:
Node
cURL
WarningNotice that, while every Fintoc SDK handles pagination internally, the cURL method does not automagically paginate the results of the API. Every page returns the last 30 elements of the resource by default. Each response also returns with a Link header that contains the pagination information. To get the next page, look for the next element on the Link header of the response, and make a request to that URL. The pages of a resource end when there is no next element on the Link header of the response.You can read more about pagination here.