πͺTest and Go Live
Test Keys
We will provide API keys for a test environment to make test API calls
What is your Business Alias?
Your Business Alias is the name you entered during registration/onboarding. It is also your unique subdomain name on Lenda (example - https://<your_business_alias>.lendastack.io).
To make API calls use your business alias as part of the base URL (example - https://<your_business_alias>.lendastack.io/api/<path_parameter>)
How to get your Live API keys
Login to the Lenda application
Navigate to the Loan Module
Click on profile on the left navigation menu
Click on the API access management tab to generate and manage your API keys.
Authenticating API calls with your keys in Postman
Here are the steps to authenticate your API call.
Set up your Global variables with the generated keys
VARIABLE INITIAL VALUE CURRENT VALUE
baseUrl https://<your_business_alias>.lendastack.io https://<your_business_alias>.lendastack.io
ApiPublicKey 4a4f164bdc009087a8ae9afbba454990 4a4f164bdc009087a8ae9afbba454990
ApiPrivateKey OTk4Mzc0MTUxZjBiZGJiOWZiZGZlMDU0YzI1... OTk4Mzc0MTUxZjBiZGJiOWZiZGZlMDU0YzI1...
Encode the combination of your keys as a base64 string
const apiPublicKey = pm.variables.get("ApiPublicKey");
const apiPrivateKey = pm.variables.get("ApiPrivateKey");
var rawStr = CryptoJS.enc.Utf8.parse(apiPublicKey + ":" +apiPrivateKey)
var encodedKeys = CryptoJS.enc.Base64.stringify(rawStr);
postman.setGlobalVariable('encodedKeys', encodedKeys);
Add the encoded API key to the Authorization header of your API request
Last updated
Was this helpful?