The cPFence API token must be generated in your Enhance Control Panel. Follow the steps below to create one:
Step 1: Generate Token in Enhance CP
- Log in to your Enhance Control Panel.
- Navigate to Settings → Access tokens → Create Token.
- Set the role to Super admin.
- Optional: Restrict the token to your Main CP IP for security. (You may need to add the IPv6 address as well to the restriction. If it still fails after that, the best approach is to leave the IP restriction off)
Note : The key is stored locally on your server in encrypted form, and even root user can’t view it once saved.
Step 2: How the API Token Is Used
The API key is stored locally on your server in an encrypted and secure way. It is only used by the ApiMachine module.
Step 3: Is It Required?
The API token is only required if you plan to use the ApiMachine module. If you are not using this module, you can skip generating an API token entirely.
Need Further Assistance?
If you encounter any issues generating or using the API token, please reach out to our support team via your client portal.