π Bearer Token Authentication

I. Token Creation
βThe creation of an authentication token to access our API is done in your customer area, within the menu "Generate Token".
π§ Token Creating Steps
βa. Accessing the Menu "Generate New API Token"β

To generate a token:
- Log into your dashboard.
- Click on the "Generate Token" menu.
- A list of all previously generated tokens will appear.
- Click on the button "Create a new API Token" to access the token creation interface.
b. Token Creation Formβ
Once you click on the creation button, a form will open. In this form, you can define several parameters:
- Authorized methods
- Authorized countries
- Authorized operators
The token will only be displayed once after creation. Make sure to save it immediately.
π§Ύ Form Fields
β
π€ Token Nameβ
- Required
- Identifies your token.
π Description of the Tokenβ
- Required
- Helps you keep track of the purpose of the token.
β³ Token Lifetimeβ
- Required
- Defines the validity period of the token in days.
- For a permanent token, choose "unlimited".
π The Countryβ
- Required
- Specifies the countries where the token is authorized.
- β You can edit or delete the values after creation.
π‘ The Operatorβ
- Required
- Defines the operators for the selected countries.
- β Editable post-creation.
π The Methodβ
- Required
- Specifies the allowed methods for the token.
- β Can be edited or removed later.
π Editing Selected Values
βOnce youβve selected a country, an operator, and the transaction methods, they will be added to a table.
- You can select multiple countries with their respective operators and methods.
- To edit a row, select the country, adjust the operator and methods as needed.
II. Token Usage
βUse the generated token to authenticate your API requests. Include it in the Authorization header.
β This feature is available starting version 3 of our API.
π§ͺ Example Usage (cURL)
βcurl -X GET \
-H "Authorization: Bearer YOUR_TOKEN" \
https://nowallet-api.mpayment.africa/nowallet/api/v3/init/payment
Make sure to replace {baseUrl} with the NoWallet API URL.
Base Url API
Was this page helpful?