Skip to main content
Code: auth.keys.legacy_unsupported
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 legacy x-api-key header is no longer accepted.

How to fix it

Upgrade to the Morapay SDK and use HMAC-signed requests with Morapay-Key.

UI hint

Programmatic handling