How to Get an API Key for Woocommerce
Step 1: Log in to your WordPress dashboard
1. Go to your WordPress site and log in using your admin credentials.
2. Once logged in, you’ll be directed to the WordPress dashboard.
Step 2: Access WooCommerce settings
1. In the dashboard, navigate to the WooCommerce section. You’ll find this in the left-hand menu.
2. Click on WooCommerce to expand the submenu.
3. Select Settings from the submenu.
Step 3: Navigate to the API tab
1. In the WooCommerce settings page, you’ll see several tabs. Click on the Advanced tab (or API tab in older versions).
2. Under the Advanced tab, you’ll see an option for REST API. Click on this.
Step 4: Add a new API key
1. In the REST API section, click on the Add key button.
2. You will be directed to a form where you can generate your new API keys.
Step 5: Configure API key permissions
1. Description: Enter a description for the API key. This could be something like “API Key for External App”.
2. User: Select the user account for which the API key should be generated. This is usually your admin account.
3. Permissions: Choose the level of access you want to grant:
• Read: Allows the user to read data from your store.
• Write: Allows the user to modify data on your store.
• Read/Write: Allows both reading and writing of data.
Step 6: Generate the API keys
1. Once you’ve configured the settings, click the Generate API Key button.
2. WooCommerce will create a new set of keys, which will be displayed on the screen:
• Consumer Key
• Consumer Secret