Akismet is working quietly for months, then one day you see “Your API key is invalid.” Comments stop being checked and your spam queue freezes. That message almost never means “Akismet is broken.” It means Akismet no longer accepts the key or site details you are sending.
The fix is straightforward: make sure you are using a real key, on the right plan, from the right account, for the right site. Then clear out any old or conflicting settings so WordPress stops sending bad data.
Akismet is showing “Your API key is invalid” in WordPress. How do I fix this so spam protection works again?
If you are wondering what is broken: Akismet is rejecting the key WordPress is sending. Either the key is wrong, the subscription or plan behind it has an issue, or WordPress is pulling the key from the wrong place.
Akismet protects your comments by calling its API with your API key and your site details. If Akismet cannot match that key to a valid, active subscription for this site, it replies “invalid” and the plugin shows:
Your API key is invalid.
Most of the time, one of these is true:
We will fix the simple copy or plan problems first, then handle network and constant based setups, then cover what to send to Akismet support if it still shows as invalid.
If you cannot find the key, use Akismet’s “Resend API key” option from their support docs or account screen and check your email.
On that same account screen:
If the plan is paused or you have no plan at all, fix that first. Once the subscription is active again, the same key will start working once the plugin re verifies it.
If the key and plan are valid, the page should update to show that Akismet is now protecting your site and how many spam comments have been blocked.
If you manage Akismet through Jetpack:
If Jetpack still shows your key as invalid even after you confirm it and your plan is active, move on to the next steps.
On older or more customized installs, the key may be hard coded in wp-config.php or provided by a network wide mu plugin.
wp-config.php in your WordPress root.WPCOM_API_KEY or AKISMET_API_KEY, for example:
define('WPCOM_API_KEY', 'your-key-here');
Plugin updates can also change how the key is read. If you previously edited akismet.php directly to hard code a key, that change may have been overwritten. Move any custom key definition into wp-config.php or a small mu plugin instead, so it survives updates.
On WordPress multisite, you might be using a single key for all sites:
wp-config.php to auto configure Akismet for each site.If some subsites show “Your API key is invalid” but others work, make sure they all point to the same, active key and that none of them are still using an outdated key saved in their own site options.
Normally, “Your API key is invalid” means Akismet responded clearly that the key is not acceptable. But if the server cannot reach Akismet correctly, key checks can also fail.
If you have SSH access, ask your host or run:
curl -I https://rest.akismet.com/1.1/verify-key
From Akismet’s side, most API calls go to hostnames like api_key.rest.akismet.com and a small set of IPs. If your host uses IP based firewall rules, they may need to allow those IPs so your site can talk to Akismet.
If the key validates in this minimal state but shows as invalid again when you re enable other plugins, there may be a plugin that filters or overrides HTTP requests or Akismet’s settings. In that case, re enable plugins one by one until you find the conflict.
At this point, you have:
If the plugin still insists that your key is invalid, it is time to loop in Akismet’s support so they can look at the key and your site from their side.
From the email address on your Akismet account, send a message to their support including:
Ask them to confirm that the key is valid, on the right plan for this site, and not suspended. They can also tell you if they see any usage problem from that site that would cause the key to be flagged.
You are in good shape when:
Hit Continue Chat below and send me:
I will help you line up your key, plan, and site configuration so Akismet accepts it again.
Scroll down to the contact form below. Enter your name, email, and WordPress needs. Atiba will get back to you as soon as possible.
WP Assistant is a free tool created by Atiba Software, a WordPress design and development company located in Nashville, TN. If you need more personalized WordPress assistance let us know, and we’ll get back to you ASAP!