Authentication
How to manually generate firstbase-signature
Firstbase will provide an API Key and an API secret.
You will need a timestamp, access here to generate a timestamp.
Access here to generate the hash, follow the steps:
Select SHA256 algorithm;
Type the API secret of the partner at the "Enter Key" field;
Copy the timestamp generated at step 1 and concatenate with the request payload. For example:
1647622159.{ "user": { "email": "test@123", "firstName": "Test",
"lastName": "Test",
"phone": 5532943153887,
"country": "BR" }, ... }
Click on the "Generate HMAC" button.
Set a new header in the request called firstbase-signature with the following pattern: firstbase-signature : t={{TIMESTAMP}},v1={{HMAC_HASH}}
Set a new header as partner-id with your API Key.
Your header should look like this:
That is it! You are good to go.
Header creation sample
Last updated