Guides & Tutorials
Jenga API
Your First API Call

First API Call

Now that you have your API keys and Bearer token as well as your signature, you're ready to make your first API call! Let's take a quick example.

You've initiated a request to get your account opening and closing balance from your application.

You'll call the Opening and Closing Account Balance API and pass the account number (accountId) in the payload, as well as the Bearer token and signature in the Authorization Header of your request.

Example request with account number
POST /account-api/v3.0/accounts/accountbalance/query HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{token_here}}
signature: {{signature_here}}
 
{
   "countryCode": "KE",
   "accountId": "0011547896523",
   "date": "2023-09-29"
}

And hey presto! 🎉

You're ready to use any of the other APIs. All you need to do is pass the parameters of the endpoint and authorize your request by passing your Bearer token in the Authorization Header plus signature, where required.