Skip to main content

Quickstart Guide

Get up and running with the Open Banking API in just a few minutes. This guide will walk you through registering your application, authenticating, and making your first API call.

Prerequisites

Before you begin, ensure you have:
  • Valid contact information (name, email address, phone number, and address)
  • A valid business email address
  • Basic knowledge of REST APIs and OAuth 2.0
  • A secure HTTPS redirect URL for OAuth 2.0 callbacks
  • A development environment ready

Quick Start

1

Register Application

First, Register your application using Dynamic Client Registration API and get your credentials (client id and secret)
In sandbox, you’ll receive credentials immediately whereas in production, the credential status will be PENDING_APPROVAL. Once approved by Sparkle team, you will be notified, you can call the GET /dcr API to retrieve your credentials.
2

Authenticate customer and get their authorisation to access their resoruces

Authenticate customer and get their approval to access their resources (e.g. Account information resources, Payment Initiation etc). There are 4 main method for authorisation, choose whichever is most applicable:
  • Device Code Authorisation - For dumb devices i.e. where customer does not have the capability to complete Sparkle authentication on a desktop computer or smart phone i.e. they can only authenticate via USSD or SMS
  • Authorisation code - For smart devices i.e. where customer has capability to complete Sparkle authentication on a desktop computer or smart phone
  • Authorisation code with PKCE - For smart (unsafe) devices e.g. Single Page Applications
  • Client Credentials - For API resources that does not require customer consent/approval e.g. Get Biller Categories
Sample code that shows how to implement OAuth 2 authorisation
3

Make API call

Make your first API call to retrieve customer informationNow you can make API calls using your access token:
4

Build your application

Build your application using our comprehensive APIs

Next Steps

Congratulations! You’ve successfully:
  1. ✅ Registered your application
  2. ✅ Implemented OAuth authentication
  3. ✅ Made your first API call
Now you can explore more features:
Remember to store your credentials securely and never expose them in client-side code.For Single Page Applications (SPA), use OAuth 2.0 with PKCE. Always use environment variables for sensitive information.