Generate and save an Enhance API key
Generate this token in Enhance when you want to use ApiMachine website bulk tools. Ordinary cPFence protection does not require it.
Create the token
Section titled “Create the token”- Sign in to your Enhance control panel.
- Open Settings → Access tokens → Create Token.
- Choose Super admin and create the token. Keep it private.
- If you restrict the token by IP, include the main control panel server’s actual outgoing addresses, including IPv6 when used. Check restrictions if validation fails.
Save it in cPFence
Section titled “Save it in cPFence”- On the main control panel server’s WebUI, open Tools & Utilities → ApiMachine Bulk Tools → API key.
- Select Set a new key if a key is already saved, then enter the token privately.
- Select Save new API key, then check the validation result before running a bulk action.
CLI alternative, from root on the main control panel server:
cpfence --set-enhance-api-keyEnter the key at the private prompt. cPFence validates it and stores the encrypted value locally. Keep the server’s configuration and your original token private.
Next, follow website selection and bulk-action steps. If validation fails, check the token role, IP restriction, Enhance API access, and cPFence license before contacting support.

