...
Table of Contents | ||||
---|---|---|---|---|
|
API Keys
This section describes what API keys are and how to retrieve them.
...
Credential | Description |
---|---|
API Key | This is required together with your secret key to generate your basic token |
Secret Key | This should be kept confidential and only stored on your own servers. Your account’s secret API key can perform any API request to Monnify without restriction. The secret key is used to authorize all your API calls on Monnify. |
How to Obtain your API Keys
Your API keys are available on your Monnify Dashboard. You can find it by following the steps below:
...
You can get your credentials for both live mode and test mode by switching the switch between both choices. See sample below:
...
Generating New API Keys
In cases where your API keys have been compromised, you can easily generate new API keys. Simply click the 'Reset API Keys' text under the API Keys and Webhooks tab on the Settings page.
...
This action will deactivate your current API key and secret immediately and new ones will be generated. You'll need to update your integrations (i.e. backend server configurations, mobile apps, websites, etc) with the new values once this is done.
Authentication
Monnify uses OAuth 2.0 as the basic security protocol. To access monnify endpoints you'd need to get an access token that grants you access to other endpoints.
...
Info |
---|
Our endpoints are either protected by Basic Authentication or OAuth (Bearer Tokens) so you will need to send an Authorization header in either of the formats specified below: |
OAuth 2.0 Authorization Header
Code Block | ||
---|---|---|
| ||
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c |
Basic Authentication Authorization Header
Code Block | ||
---|---|---|
| ||
Authorization: Basic ZGVtbzpwQDU1dzByZA== |
Possible Response Messages And Meaning
Response Message | Meaning | Action |
---|---|---|
Access token expired | This implies that the generated access token has exceeded its 1 hour time limit | Kindly regenerate a new access token. |
Cannot convert access token to json | This occurs when the access token generated is malformed or is not in the usual access token format. | Kindly recheck if there are any missing characters or if it’s poorly formatted. You can easily generate a new access token. |
...
Related Articles
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|
...