Authentication
Last updated
Was this helpful?
Last updated
Was this helpful?
Firstbase will provide an API Key and an API secret.
You will need a timestamp, access to generate a timestamp.
Access 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.