Title: Exception: Invalid API endpoint
Last modified: April 25, 2025

---

# Exception: Invalid API endpoint

 *  [cfm168](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint-2/)
 * Hello,
 * The problem came back after running WP6.8, WC9.8.2 and **MailPoet** Version 5.11.0.
   Deleted the plugin and reinstall (from admin site) doesn’t help. Tested with 
   health check by deactivated all plugins but the issue persists. See the error
   report below:
 * Apr 25, 07:41:40
 * Exception: Invalid API endpoint. in /home/SorryHidedmysite/SorryHidedmysite.com/
   wp-content/plugins/mailpoet/lib/API/JSON/API.php:193
 * Stack Trace
    1. 
       MailPoet\API\JSON\API->processRoute()/home/SorryHidedmysite/SorryHidedmysite.
       com/wp-content/plugins/mailpoet/lib/Subscription/Form.php:33
    2. 
       MailPoet\Subscription\Form->onSubmit(Array)/home/SorryHidedmysite/SorryHidedmysite.
       com/wp-includes/class-wp-hook.php:324
    3. 
       WP_Hook->apply_filters(”, Array)/home/SorryHidedmysite/SorryHidedmysite.com/
       wp-includes/class-wp-hook.php:348
    4. 
       WP_Hook->do_action(Array)/home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/
       plugin.php:517
    5. 
       do_action(‘admin_post_nopr…’)/home/SorryHidedmysite/SorryHidedmysite.com/wp-
       admin/admin-post.php:58
    6. 
       {main}
 * Please help to fix it. Thanks in advance!

Viewing 1 replies (of 1 total)

 *  Plugin Support [Ojoma a11n](https://wordpress.org/support/users/geraltrivia/)
 * (@geraltrivia)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint-2/#post-18440837)
 * Hello there [@cfm168](https://wordpress.org/support/users/cfm168/) ,
 * Thank you for your detailed message and for already testing by reinstalling the
   plugin and using the Health Check plugin. I completely understand how frustrating
   it must be to still run into this issue, and I appreciate you taking these steps
   already.
 * Looking at the error you shared, the **Invalid API endpoint** message usually
   points to something blocking or misrouting MailPoet’s internal requests. Based
   on what you have already tried, here are a few additional steps that can help:
    1. **Clear any server-side or plugin caching:**
       If you are using a caching plugin
       or your web host applies caching at the server level, clearing the cache may
       help. Sometimes old cached routes can interfere with MailPoet’s connections.
    2. **Temporarily disable any security or firewall plugins:**
       Plugins like Wordfence,
       Sucuri, or server-side firewalls could block internal requests. If you have 
       any security plugin installed, try temporarily disabling it to see if the error
       resolves.
    3. **Check your WordPress Site URL and Home URL:**
       Please go to **Settings > General**
       and make sure your WordPress Address (URL) and Site Address (URL) match and 
       correctly reflect your current site domain without any typos.
    4. **Server security rules:**
       Sometimes hosting providers have server-level security
       rules (like ModSecurity) that block requests between parts of the site. It might
       be worth asking your hosting provider if they can check and whitelist MailPoet
       internal API routes if needed.
 * Let us know if either work for you.
 * Cheers.

Viewing 1 replies (of 1 total)

The topic ‘Exception: Invalid API endpoint’ is closed to new replies.

 * ![](https://ps.w.org/mailpoet/assets/icon-256x256.png?rev=3284564)
 * [MailPoet - Newsletters, Email Marketing, and Automation](https://wordpress.org/plugins/mailpoet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailpoet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailpoet/)
 * [Active Topics](https://wordpress.org/support/plugin/mailpoet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailpoet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailpoet/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ojoma a11n](https://wordpress.org/support/users/geraltrivia/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint-2/#post-18440837)
 * Status: not resolved