Need to connect a store, app, or service to WooCommerce without giving it more access than necessary? WooCommerce REST API restricted API keys let you control whether an integration can read, write, or both—helping you protect store data while keeping essential workflows running.
In this guide, you’ll learn how to create WooCommerce API keys and choose permissions that fit your needs. Follow a few straightforward steps to set up access with confidence and keep your store integrations organized.
Prepare WooCommerce and choose a dedicated user
Before setting permissions, decide which account the integration should act through. A little preparation now can make access easier to audit later—and help prevent an integration from inheriting privileges it doesn’t need.
First, check that you can reach the settings where API credentials are managed. This avoids getting partway through setup only to discover that your account cannot create or manage keys.
Confirm you have administrator access
Sign in to your WordPress dashboard and confirm you can open WooCommerce → Settings → Advanced → REST API. You generally need an administrator account, or a user with the relevant WooCommerce management capabilities, to create and manage keys.
If the REST API section is unavailable, ask a store administrator to grant the appropriate access or create the key for you. Avoid sharing an administrator password simply to complete setup; the key should be associated with the account that best fits the integration’s needs. WooCommerce’s REST API documentation outlines the key-management workflow.
Once you can reach the settings, consider which WordPress user the key should represent. The selected user matters because API requests use that account’s permissions as well as the key’s read/write setting.
Create or select a user with only the access the integration needs
For a third-party app or ongoing connection, use a dedicated user account rather than your personal administrator account. Choose an existing account only if its role and capabilities are appropriate; otherwise, ask an administrator to create one for the integration.
Keep the account’s access limited to the tasks the service performs. For example, an inventory tool may need to update products but should not automatically receive broad access to customers, orders, or store settings. WordPress roles bundle capabilities, so a standard role may grant more than intended; for finer control, an administrator can use a carefully configured custom role.
- Give the integration a recognizable username, such as inventory-sync.
- Use a unique email address that your team can monitor.
- Do not assign administrator privileges unless the integration genuinely requires them.
When you generate the key, select this dedicated user and then choose the narrowest suitable key permission. These are separate safeguards: the key’s permission setting does not replace the user’s account permissions, so review both before connecting the integration.
Create WooCommerce REST API restricted API keys
With the right user chosen, you’re ready to create credentials for the connection. The key settings determine what the integration can do through the API, so take a moment to match them to its actual tasks.
Start by opening the API credential controls in your store dashboard. The settings page is where you can create, review, and revoke keys.
Open the REST API settings in WooCommerce
In WordPress, go to WooCommerce → Settings → Advanced → REST API. Select Add key to open the form for creating a credential.
If you don’t see this option, check that your account has the access needed to manage WooCommerce settings. The WooCommerce REST API documentation also covers the key-management process and its settings.
Next, add a label that will help you identify the connection later. The label is for your team’s reference; it does not change what the key can access.
Generate a new key and assign it to the dedicated user
Enter a clear description, such as Inventory sync – warehouse platform, then choose the dedicated user you prepared. A specific label makes it easier to tell keys apart if you connect several apps or need to investigate an unfamiliar integration.
After selecting the permission level, choose Generate API key. WooCommerce will display a Consumer key and Consumer secret. Copy both and provide them only through the integration’s secure credential fields; the secret is shown at creation, so store it safely before leaving the page.
One final choice controls the key’s allowed API actions. Select the narrowest option that still lets the integration complete its job.
Choose read-only or read/write permissions
WooCommerce typically offers three choices: Read, Write, and Read/Write. Read permission suits a service that only retrieves information, while Write allows it to create or update data. Read/Write combines both capabilities.
For example, a reporting dashboard that displays product and order information may only need Read. An inventory connector that adjusts stock levels needs write access; if it also checks product details, it may require Read/Write. Before saving, consider:
- Does the integration only retrieve store data?
- Will it create, update, or delete information?
- Can its features work with a more limited permission?
Remember that the key setting works alongside the selected user’s capabilities. Once the key is created, keep the credentials private and use the integration’s test or connection check to confirm that its required actions work.
Secure and test your API keys
A connection that works is only half the job—its credentials also need to stay private and behave as expected. A few checks now can help prevent accidental exposure and catch access that is broader than the integration needs.
Because WooCommerce displays the secret when the key is created, take care of both values before moving on to connection testing. A safe storage habit also makes future maintenance easier.
Copy and store the consumer key and secret securely
Copy the Consumer key and Consumer secret directly into the service’s protected credential fields. If you need to keep a record for your team, use an approved password manager or secrets vault with access limited to the people responsible for the integration.
Avoid putting credentials in email, chat messages, screenshots, shared documents, or source-code repositories. If a developer needs access, use your organization’s secure sharing process rather than sending the secret as plain text. Treat the secret like a password: anyone who obtains it may be able to make API requests within the key’s allowed access.
With the credentials stored, check that the connection succeeds—and that its boundaries hold. A successful login alone does not confirm that the integration is limited to the actions you intended.
Test the connection and confirm its access is restricted
Use the integration’s built-in connection test, then try a normal task, such as retrieving a product or syncing stock. Confirm that the expected information appears and that routine actions complete without granting additional access.
Where practical, test a restricted action as well. For example, a read-only connection should not be able to change a product. Review the integration’s activity or error logs for unexpected requests, and check that its features work with the selected permissions. If access is too broad, adjust the setup rather than assuming the connection needs more privilege.
Once the integration is verified, include its key in your regular access reviews. Removing credentials that are no longer needed—and replacing exposed ones promptly—helps keep old connections from becoming forgotten entry points.
Revoke or replace keys when they are no longer needed
When an integration is retired, remove its key from WooCommerce → Settings → Advanced → REST API. Revoke a key promptly if its secret may have been exposed, or if the associated user or service no longer requires access.
For a planned replacement, create and test the new key, update the integration’s saved credentials, and then revoke the old one. This order can reduce disruption while ensuring the retired credential no longer works. Keep a simple record of each key’s owner and purpose so your team can identify what to review during future access checks.
Keep WooCommerce integrations useful—and appropriately limited
Creating WooCommerce REST API restricted API keys is about balancing reliable access with careful control. A dedicated user, permissions matched to the integration’s tasks, and secure credential handling help protect your store while keeping essential workflows running.
After setup, test that the connection works as expected and review its access from time to time. Revoke or replace keys when they’re no longer needed, and your integrations can stay organized, secure, and ready to support your store.