Title: Exception: Invalid API endpoint
Last modified: March 30, 2025

---

# Exception: Invalid API endpoint

 *  [cfm168](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/)
 * Hello,
 * I have Version 5.10.0 (free), WP6.7.2 and WC Version 9.7.1. Today got the first
   time error as below:
 * 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:61
    6. 
       {main}
 * Please advise how to fix it. Thanks in advance!

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Support [Saravanan S, a11n](https://wordpress.org/support/users/simplysaru/)
 * (@simplysaru)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/#post-18395469)
 * Hi [@cfm168](https://wordpress.org/support/users/cfm168/),
 * Sorry to hear about these errors. Would it be possible for you to do a [conflict test](https://woocommerce.com/document/woocommerce-self-service-guide/)?
   We have some instructions here, and we recommend you use the [Health Check](https://wordpress.org/plugins/health-check/)
   plugin for such a test.
 * Do keep us posted on how the recommended suggestion works out for you, and we
   can debug this further.
 *  Thread Starter [cfm168](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/#post-18401945)
 * Hi [@simplysaru](https://wordpress.org/support/users/simplysaru/),
 * Thank you for your response. I used the Health Check plugin and tested (deactivated
   all plugins including woocommerce), the error persists:
 * [06-Apr-2025 12:18:26 UTC] Exception: Invalid API endpoint. in /home/SorryHidedmysite/
   SorryHidedmysite.com/wp-content/plugins/mailpoet/lib/API/JSON/API.php:193
 * Stack trace:
 * 0 /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/plugins/mailpoet/lib/
   Subscription/Form.php(33): MailPoet\API\JSON\API->processRoute()
 * 1 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/class-wp-hook.php(324):
   MailPoet\Subscription\Form->onSubmit(Array)
 * 2 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/class-wp-hook.php(348):
   WP_Hook->apply_filters(”, Array)
 * 3 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/plugin.php(517): WP_Hook-
   >do_action(Array)
 * 4 /home/SorryHidedmysite/SorryHidedmysite.com/wp-admin/admin-post.php(61): do_action(‘
   admin_post_nopr…’)
 * 5 {main}
 * This is only error content I found from php-error.log file. Please help. Thanks!
 *  Thread Starter [cfm168](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/#post-18403712)
 * Deactivated all plugins including Woocommerce still get the following errors:
 * [06-Apr-2025 12:18:26 UTC] Exception: Invalid API endpoint. in /home/SorryHidedmysite/
   SorryHidedmysite.com/wp-content/plugins/mailpoet/lib/API/JSON/API.php:193
   Stack
   trace: 0 /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/plugins/mailpoet/
   lib/Subscription/Form.php(33): MailPoet\API\JSON\API->processRoute() 1 /home/
   SorryHidedmysite/SorryHidedmysite.com/wp-includes/class-wp-hook.php(324): MailPoet\
   Subscription\Form->onSubmit(Array) 2 /home/SorryHidedmysite/SorryHidedmysite.
   com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 3 /home/
   SorryHidedmysite/SorryHidedmysite.com/wp-includes/plugin.php(517): WP_Hook->do_action(
   Array) 4 /home/SorryHidedmysite/SorryHidedmysite.com/wp-admin/admin-post.php(
   61): do_action(‘admin_post_nopr…’) 5 {main}
 *  Plugin Support [Gui A. a11n](https://wordpress.org/support/users/guicmazeredo/)
 * (@guicmazeredo)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/#post-18410688)
 * Thanks for giving that a try and I’m sorry to hear you are still getting this
   error message.
 * Could you please follow the instructions to [re-install the plugin via FTP](https://kb.mailpoet.com/article/258-re-installing-updating-the-plugin-via-ftp)
   and let us know if it resolves the issue? This will ensure no plugin files are
   missing or corrupted.
 * Don’t worry, **you won’t lose any data from the plugin** since it’s saved in 
   your database, not the plugin files. However, whenever making any changes like
   this, we recommend making sure you have a full backup of the site just in case.
 *  Thread Starter [cfm168](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/#post-18415974)
 * Hi [@guicmazeredo](https://wordpress.org/support/users/guicmazeredo/),
 * Yes re-install seems working. Thanks a lot.
 *  Plugin Support [Thu P. a11n](https://wordpress.org/support/users/thup90/)
 * (@thup90)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/#post-18416044)
 * Hi there,
 * I’m glad to hear reinstalling the plugin worked. Thanks for letting us know!
 *  Thread Starter [cfm168](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [1 year ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/#post-18470767)
 * This topic actually not yet resolved. Now I have WP6.8.1, Mailpoet v5.12.2 and
   WC9.8.5. The same error found as below:
 * 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}
 * I delete the plugin from admin, and then upload the latest version via FTP, the
   issue persists every day. This error doesn’t found in the woocommerce status 
   logs.
 *  Plugin Support [Lynn J.a11n](https://wordpress.org/support/users/lynnjat7/)
 * (@lynnjat7)
 * [1 year ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/#post-18472368)
 * Hi there [@cfm168](https://wordpress.org/support/users/cfm168/),
 * Can you share a little more information about what you are doing to trigger this
   fatal error?
 * For example, are you:
    - taking some action on your site’s dashboard -> if so, please walk us through
      those steps
    - seeing the error when a subscriber takes action on the front end, such as 
      filling out the subscription form -> if so, please walk us through those steps
 * Screenshots are always helpful of the steps you are taking along the way and 
   of the error itself.
 *  Thread Starter [cfm168](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [1 year ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/#post-18480982)
 * Hi [@lynnjat7](https://wordpress.org/support/users/lynnjat7/),
 * This error most like caused by from the front end unknown activities.
 * Tested from site’s dashboard and placed order for customer/subscriber, no error
   found within 3 days. So I think the error not caused by the site’s dashboard.
 *  Plugin Support [Gui A. a11n](https://wordpress.org/support/users/guicmazeredo/)
 * (@guicmazeredo)
 * [1 year ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/#post-18481090)
 * Hi [@cfm168](https://wordpress.org/support/users/cfm168/) ,
 * That’s great to hear. If you see this error again, please take a screenshot and
   send it over. We’ll be happy to take a further look!
 *  Thread Starter [cfm168](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [1 year ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/#post-18483090)
 * The same error found again today. Since not sure what caused the issue, I can’t
   provide the screenshot.
 * One thing pretty sure, it is not caused by admin dashboard, and not caused by
   customer login from front site. Because I tested it from admin and front and 
   there was no error created for few days after testing.
 *  Plugin Support [Gui A. a11n](https://wordpress.org/support/users/guicmazeredo/)
 * (@guicmazeredo)
 * [1 year ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/#post-18488924)
 * Hey there [@cfm168](https://wordpress.org/support/users/cfm168/) ,
 * I’m sorry to hear this error is back again. Did you notice if this causes any
   actual issues on your website? I mean, is there anything in MailPoet not working
   as expected?
 * I’m asking this because I found a couple of similar reports from other users,
   but other than logging the error nothing was wrong with the MailPoet functionality.
   Therefore, this has been reported to our devs, but haven’t been prioritized since
   it’s not causing any actual issues.
 *  Thread Starter [cfm168](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [1 year ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/#post-18490092)
 * It seems MailPoet is working fine so far even the errors persist.
 *  Plugin Support [Thu P. a11n](https://wordpress.org/support/users/thup90/)
 * (@thup90)
 * [1 year ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/#post-18491019)
 * Hi [@cfm168](https://wordpress.org/support/users/cfm168/),
 * Thanks for confirming that MailPoet is still working find despite the error persists.
 * We’re still investigating into this for now, however, since this is a low priority
   issue, I don’t have an ETA of when this will be fixed.

Viewing 14 replies - 1 through 14 (of 14 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/)

 * 14 replies
 * 5 participants
 * Last reply from: [Thu P. a11n](https://wordpress.org/support/users/thup90/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/exception-invalid-api-endpoint/#post-18491019)
 * Status: not resolved