Authentication & API Keys
Secure your requests with Moolre credentials and manage your account integration parameters.
Moolre uses API keys passed via request headers to authenticate your operations. Depending on the endpoint and the environment (Live or Sandbox), you will need to provide different combinations of credentials.
Authentication Headers
Provide the appropriate headers when making calls to the Moolre APIs:
X-API-USERRequiredYour unique username/account identifier. Required to verify identity along with your keys (not required for SMS and WhatsApp services).
X-API-KEYSecret KeyYour secret private API key. Used for backend operations such as initiating transfers, internal transactions, wallet modifications, balances and statements. Keep this secure.
X-API-PUBKEYPublic KeyYour public key. Used for client-facing integrations, initiating checkout processes, generating payment IDs, checkout links and checking a payment. It cannot read balances or statements.
X-API-VASKEYVAS ServicesValue-Added Services credential. SMS and WhatsApp use separate service-specific VAS keys for their respective gateway requests.
Secure your API keys
Never commit your secret keys (X-API-KEY or X-API-VASKEY) to public code repositories, and avoid using them in client-side applications where they could be easily inspected.
Send credentials in headers only
Keys and usernames in the URL or in the request body still work, but they end up in access logs and browser history, and each response then carries a DEPRECATED_KEY_IN_QUERY or DEPRECATED_KEY_IN_BODY notice. Use the headers above. See Deprecations.
Callback source IPs and verification guidance are now documented on the Payment Callback page.
Generating Your API Keys
Update: Generating Payment API Keys
Payment API credentials are wallet-specific. Create an API Service linked to the wallet you want to integrate, then generate that service's credentials.
Where to Find It
Open or create an API Service
Head to your dashboard and open the API Service linked to the wallet you want to integrate, or create a new service for that wallet. Each wallet requires its own API Service and credentials.

Select an existing service from the dropdown

Or click + Create a Service to start a new service
Go to the Security tab
Inside your API Service, locate and click the Security tab.

Navigate to the Security tab inside your service view
Generate your keys
Click Generate API Keys and follow the on-screen steps to complete setup.

Enter your account password and click Generate
Important Notes
Wallet-Specific Scope
API credentials are tied to the wallet linked to their API Service. Credentials generated for one wallet cannot be used to access or process transactions for another wallet. Create a separate API Service for each wallet you integrate.
Private Key Expiry
The Private Key expires (becomes invalid) automatically whenever the account password is changed. You must generate a new private key and update your active integrations to avoid service disruption.
🔑 Key Expiry & Changes
API Key Regeneration
Secret API Keys are only shown once upon generation. Regenerating keys or changing your Moolre account password will immediately invalidate the previous secret API key. Make sure to update your application code immediately if keys are updated.
Note: The Public Key remains the same after generation and is valid for a maximum of 5 years.
✅ Wallet Prerequisites
Before using your keys to make authenticated requests, make sure the following requirements are met:
You must have a registered Moolre business account. Complete all settings including Phone, Email, and ID Verification to unlock API capabilities.

Navigate to Profile to complete your identity setup
