- Sign in to your WooCommerce account.
- Navigate to WooCommerce > Settings > API > Keys/Apps
- Click Add key.

- Add a description and select the WordPress user for which you want to generate the key.
- Choose the level of access for this REST API key. Access levels include Read access, Write access, or Read/Write access.
- Click Generate API key and WooCommerce will generate REST API keys for the selected user.
- Now that keys have been generated.

- If the WordPress user associated with an API key is deleted, the API key will cease to function. API keys are not transferred to other users.