Clear guidance for payments, accounts and integrations
+1 405 695 9990 · info@welcometothemx.com
API

How to protect API credentials

Treat every secret key as a powerful credential: isolate it, limit access, rotate it, and prevent accidental logging.

What this guide covers

Treat every secret key as a powerful credential: isolate it, limit access, rotate it, and prevent accidental logging. Work through each step in order, preserve safe reference details, and stop before repeating an action if the original result is still unclear.

Step-by-step

  1. Keep keys on trusted servers or managed secret stores; never embed them in websites, mobile applications, or public repositories.
  2. Use separate credentials for environments and grant only the permissions each service needs.
  3. Prevent headers and environment variables from appearing in application logs, crash reports, or support attachments.
  4. Rotate keys on a schedule appropriate to your risk and immediately after suspected exposure.
  5. Review repository history and deployment logs during incident response because deleting a visible key may not remove every copy.
Important

A key shown in chat, a ticket, source control, or client-side code should be considered exposed and rotated.

Troubleshooting

  • If a key was committed, revoke it before rewriting history so it cannot be used during cleanup.
  • If production and sandbox credentials are confused, verify host and environment configuration separately.
  • Unexpected usage should trigger rotation, log review, access review, and support escalation.

If the result changes after a check, record what changed and the exact time. That detail is often more useful than repeating every step.

Before contacting support

Prepare the smallest set of information needed to explain the issue. Redact passwords, one-time codes, API keys, authorization headers, CVVs, full card numbers, and full bank account details.

  • Credential identifier, never the secret
  • Environment and approximate exposure time
  • Actions already taken

State the expected outcome, observed outcome, current impact, and whether the issue is ongoing or intermittent.

About this help topic

People sometimes use the phrase merchant mx while looking for practical payment-workspace guidance. This independent welcometothemx resource focuses on clear support information without claiming affiliation with a third-party brand.

A merchant mx search can cover many workflows; use the steps on this page and verify actions against the settings available in your own account.

Continue learning

Related articles

All articles