There are three main API authentication methods: HTTP Basic Authentication, URL Authentication and OAuth2.
The easiest way to authenticate is by using HTTP Basic Authentication. Here, you authenticate your request by providing your Client ID/Client Secret combinations along with every request. Authentication is performed such that your Client ID is your username and your Client Secret is your password.
Learn how to create your Client ID and Client Secret here
Once you have your API Keys, you can now provide your Client ID and a Client Secret in the HTTP Basic Authorization header to authenticate your API requests.
So if khsqolyu is your ClientID and muahwiao is your ClientSecret, then the Base64 encoding of your API keys (khsqolyu:muahwiao) results in following header being sent via the HTTP Authorization header.
Authorization: Basic a2hzcW9seXU6bXVhaHdpYW8g
See sample cURL request for receiving money
curl -X POST \
-H 'authorization: Basic a2hzcW9seXU6bXVhaHdpYW8=' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
"CustomerName": "Customer Fullname",
"Description": "1 box of Sugar",
API Keys Security Tips
Ensure that you keep your API keys safe and protected from any unauthorised use.
Do not share your API keys with any unauthorised third party. If you have reasons to believe that your API keys have been compromised. You can easily regenerate new API keys with the following steps:
- Go to Developer.
- Then click on the 3 dots on your far right.
- Click on Generate Keys to regenerate new API keys.
If you want to integrate any of a wide variety of API’s into your application, then checkout our API documentation.