Skip to content
Documentation / Authentication

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-USERRequired

Your unique username/account identifier. Required to verify identity along with your keys (not required for SMS and WhatsApp services).

X-API-KEYSecret Key

Your 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 Key

Your 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 Services

Value-Added Services credential. SMS and WhatsApp use separate service-specific VAS keys for their respective gateway requests.

lock

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.

shield

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

info

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

1

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.

app.moolre.com
Select existing API Service
zoom_in

Select an existing service from the dropdown

app.moolre.com
Create new API Service
zoom_in

Or click + Create a Service to start a new service

2

Go to the Security tab

Inside your API Service, locate and click the Security tab.

app.moolre.com
Moolre Dashboard API Service Security Tab
zoom_in

Navigate to the Security tab inside your service view

3

Generate your keys

Click Generate API Keys and follow the on-screen steps to complete setup.

app.moolre.com
Moolre Dashboard Generate API Keys form
zoom_in

Enter your account password and click Generate

Important Notes

vpn_lock

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.

key_off

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

warning

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.

app.moolre.com
Complete Account Profile
zoom_in

Navigate to Profile to complete your identity setup