Skip to main content
Code: auth.keys.invalid
HTTP: 401 Unauthorized

What happened

The API rejected the request during authentication before your route handler ran.

Safe message

We could not verify this request. Please try again later.
Use err.safeMessage or err.displayMessage in customer UI, not err.message.

Why this happened

The public key in Morapay-Key does not match any active key in your Morapay dashboard.

How to fix it

Confirm you are using the correct TEST/LIVE key pair from Developers → API keys. Rotate keys if unsure.

UI hint

Programmatic handling