API keys are used for authenticating API requests from applications and websites integrated with any of Hubtel's APIs. The keys consist of the apiId and the apiKey which together form an added layer of security and authenticity for all API requests.
Before any integration can take place, the keys need to be generated through a very simple process.
Keys are associated to an Employee and a Branch of your business.
Kindly note that only Super Admins or Administrations can add an API User and manage API keys.
Add API User
To generate API Keys, you must first create an API User. To create an API User;
- In the menu bar, click the profile icon and then Settings -> Business Settings -> Employees.
- Once here, click the Add button on your top right.
- Select API User from the drop down list.
- Fill in the employee details:
- Full Name (first name and last name) – This employee name will be associated with all sales made using the key generated.
- Mobile Phone Number – This employee mobile number will be associated with all sales made using the key generated.
- Branch –This branch will be associated with all sales made using the key generated
5. Click Add after providing correct and accurate details to create the API User account.
The next step is to copy the API key and API secret that is displayed immediately after an API User is successfully created.
6. Copy API Key
7. Copy API Secret
Voila! You can now create your awesome apps.
8. Click Done to complete the process.
If you were not able to copy the API Key and API secret, no worries, see this article
to regenerate the keys again.