Authorization

For you to be able to use our APIs successfully, you have to generate or create your basic auth token

You will need your API username and password to do this. Below is a step by step process to get your API username and Password

  • Once logged in to your account, proceed to the API Keys menu

  • Under this page, you will see all your API keys, if you do not have one, you will need to create new

  • Once you create your api Keys. Copy your API username and Password.

Below is an example to generate your basicAuthToken using PHP, you can do the same using any other language of preference.

<?php
// Your API username and password
$apiUsername = 'your_username';
$apiPassword = 'your_password';
// Concatenating username and password with colon
$credentials = $apiUsername . ':' . $apiPassword;
// Base64 encode the credentials
$encodedCredentials = base64_encode($credentials);
// Creating the Basic Auth token
$basicAuthToken = 'Basic ' . $encodedCredentials;
// Output the token
echo $basicAuthToken;
?>

Once you have your basicAuthToken you can now use it in your API request headers

Last updated