Authentication
Credentials
FitBank features a robust and safe API to offer for our clients, and the first step to integrating it is the process of authentication. For this, we use the schema "Basic Auth", consisting of a username and password for the first access. We issue these credentials only after the formalization of the contract and the register of the client in our infrastructure.
The owner will receive an email contact in our records with a secured link to access its credentials.
Headers API
HTTP Headers are a relevant part of the API request and response as they represent the meta-data associated with the API request and response.
“Content-Type”: “application/json”
“X-Requested-With”: “XMLHttpRequest”
“Authorization”: “Basic Auth”, “Username:Password”,
Note: FitBank will provide the Username and Password (send on base 64).
Example using Postman
1 - In the “Authorization” tab, configure the TYPE for “Basic Auth” on the left side;
2 - On the right side, fill in the “USERNAME” field with your “KEY” and the “PASSWORD” field with your “Secret”;
3 - Click on “PREVIEW REQUEST” to validate the configuration.
As shown below:
4 - On the “Headers” tab, check that the fields are filled in as follows:
KEY: Content-Type and VALUE: application/json
If not, enter it manually.
As shown below:
5 - In the “Body” tab, make sure that the request method is POST and pointing to the address https://sandboxapi.fitbank.com.br/main/execute
Updated over 1 year ago