Founder deal: 75% off the lifetime licence. Unlimited sites, one payment, every update.See the founder plan
Home / Blog / Gateways and processors

Where to Find Your NMI API Security Key

Step by step: where the security key and the public tokenization key live in the NMI merchant portal, and which one your plugin needs.

To find your NMI security key, log in to the NMI merchant portal and open Settings, then Security Keys. Existing keys are listed there, and you can add a new one with the “Add a New Key” button. For WooCommerce you want a private key with API permission, not the public tokenization key used by card fields. If your gateway is sold under a reseller’s brand, the menu names may differ slightly.

Step by step: create the key

  1. Log in to the merchant portal as an administrative user. Only admins can create keys.
  2. Open Settings, then Security Keys.
  3. Choose Add a New Key.
  4. Give it a name that identifies the store, for example the domain name.
  5. Pick the user the key belongs to. The key inherits that user’s permissions.
  6. Set the key permission type to API for a shopping cart integration.
  7. Create it and copy the key into a password manager straight away.

Do not paste a key into email or chat. If you need to hand it to a developer, use a password manager share and rotate the key afterward.

Use a dedicated API user

Because the key inherits its user’s permissions, make a separate user for the store rather than reusing a person’s login. Give it only what the store needs: sale, authorize, capture, void and refund, plus the Customer Vault if you sell saved cards. If an employee leaves or a key leaks, you can revoke one key without locking anyone out. The plugin side of this is on the gateway credentials page.

Security key versus tokenization key

People often grab the wrong one. They are separate keys with separate jobs:

  • Security key (private): authorizes server-to-server requests that create charges, refunds and voids. Keep it secret.
  • Public tokenization key: used only by Collect.js in the browser to turn card details into a token. It is designed to be visible in page source and cannot be used for the payment API.

An API key does not work as a tokenization key, and the reverse is also true. The tokenization key is created on the same Security Keys screen, with the key type set to public and the Tokenization permission. Our guide to Collect.js and hosted fields explains where it is used.

What the plugin needs

NMI for WooCommerce asks for two values: the gateway URL and the security key. The URL is the endpoint on your gateway’s own domain, usually ending in /api/transact.php. Paste both, choose sandbox or live, and press Test connection. Sandbox and live accounts have separate keys, so a key from one will not work in the other. Developers who set credentials in code should read the hooks and filters documentation and keep the key out of the theme repository.

If you cannot find the Security Keys menu

  1. You may not be an admin. Ask the account owner to create the key for you.
  2. The portal may be a reseller’s. Many gateways run on NMI under another name. Ask your provider for the API credentials for a third party shopping cart. That phrasing gets a faster answer than asking about NMI. Our guide to finding out which gateway you use helps here.
  3. Your processor may control key access. Some resellers create keys on request. Their policy decides, not the plugin.

Older logins and usernames

Older integrations used a username and password instead of a key. NMI’s own documentation recommends a security key, and the key is what the plugin uses. If a third party tells you username and password logins are ending on a particular date, confirm that date with your gateway provider.

Check that the key works

Rotating or revoking a key

Create a new key for the same user, paste it into the plugin, press Test connection, place one transaction, then delete the old key in the portal. If you ever suspect a leak, rotate first and investigate after. Our security page explains how the plugin handles keys in logs, and the comparison hub covers how other gateways handle credentials.

Running NMI on WooCommerce? Free covers the basics and Pro adds the paid features. Compare Free and Pro.

Last reviewed November 2026.

NMI for WooCommerce

Connect the plugin with the right key

Gateway URL and security key are the two values the plugin needs.

See gateway credentialsSee pricing

Free plugin, sandbox included.