Authentication
Environment: Live
Learn which Moolre credentials apply to each service, how sandbox credentials differ from live credentials, and where to find callback verification guidance.
# Authentication
Learn which Moolre credentials apply to each service and how sandbox credentials differ from live credentials.
## Wallet-specific payment API credentials
Payment API credentials are tied to the wallet linked to their API Service, not shared across the entire user account. Credentials generated for one wallet cannot access or process transactions for another wallet.
1. Create an API Service linked to the wallet you want to integrate.
2. Generate the API key and other required credentials for that service.
3. Use those credentials for that wallet's integration.
4. Repeat with a separate API Service and credentials for each additional wallet.
Keep API credentials secure and do not expose them in publicly accessible applications or repositories.
## Send credentials in headers only
Send X-API-USER, X-API-KEY, X-API-PUBKEY and X-API-VASKEY as request headers. Keys or usernames in the URL or in the request body still work, but they are deprecated: they are written to access logs and browser history, and the response carries a DEPRECATED_KEY_IN_QUERY or DEPRECATED_KEY_IN_BODY notice. See [Deprecations](https://docs.moolre.com/guides/deprecations).
A public key can be marked with a PUBKEY_RESIGN notice when it was signed with a retiring key: generate a new public key before the date in the notice.
Endpoints for bulk payouts, invoices and webhook tools need the private key (X-API-KEY); a public key is refused.
Balances and statements (Account Status and List Transactions) need X-API-USER and the private X-API-KEY, from your server. A public key is refused with AIN12, in X-API-PUBKEY or in X-API-KEY: the public key is the long token, the private key is the short one, and the header does not change what a key is. Collections, payment links, checkout and the payment and transfer status calls keep working with a public key as documented.
[Read the Wallet-Specific API Key Generation announcement](https://docs.moolre.com/changelog#wallet-specific-api-key-generation).
## Callback security
The callback source IP list and payment callback verification guidance are on the [Payment Callback page](https://docs.moolre.com/api/payments/webhook#callback-source-ips).