Test and go live

Test keys

We will provide API keys for a test environment to make test API calls.

circle-info

You can also download our postman collectionarrow-up-right to make testing the API easier

What is business your alias?

Your business alias is the alias name you entered during registration/onboarding. It is also your unique subdomain name on Lenda (example. https://<your_business_alias>.lenda.ng). To make API calls use your business alias as part of the base URL(example. https://<your_business_alias>.lenda.ng/api/<path_parameter>)

How to get your Live API keys

  1. Login to the Lendaarrow-up-right application

  2. Navigate to the loan module

  3. Click on profile on the left navigation menu

  4. Click on the API access management tab to generate and manage your API keys.

Authenticating API calls with your keys

Here are the steps to authenticating your API call.

  • Combine your public key and private key separating both with ":" (colon symbol)

//example public_key:private_key
var keys = "6e83be7813c44ab6ab888889472beb:NTQzM2VjM2M1ZTgyMGRiYjQzNjI4YTI0MDMwMmE4MWQzN2E3NGFmNGQ0NTQxYjk1ZTFkMDU3ZmIwOWJlZDk4Yjo5ZWM3OWM4Zi04NMYx..."
  • Encode the combination of your public key and secret key as a base64 string

  • Add the encoded API key to the authorization header of your API request.

circle-info

Sample Authorization Header

Authorization: MjE2ZTg5ZGU0OWNhMDZjN2KiMjQwNWQ4NjBmODNiODA4OTUzYTBiYWY5ZGFiYWY4MzMzOWEyMWE0MjZiZWZhNTo3NWRhZWxMS1lMGVjLTQ0OGMtYmY2Mi00YmFhMGE0ZjRlNzQ=

Last updated