Title: POST request failure (API issues)
Last modified: January 15, 2024

---

# POST request failure (API issues)

 *  Resolved [alekmitch](https://wordpress.org/support/users/alekmitch/)
 * (@alekmitch)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/post-request-failure-api-issues/)
 * Hi,
 * I’m having an issue with sending a POST request for this plugin to the endpoint/
   wp-json/jwt-auth/v1/token for one of my sites because of this plugin.
 * My two other sites are working but this one keeps giving me: 
 *     “code”: “[jwt_auth] invalid_application_credentials”,
       “message”: “Error:
   API login for user disabled.”,    “data”: {        “status”: 403
 * I’ve done everything I can think of, including having my support at WPX go through
   the files twice to notice any difference between the sites, but couldn’t find
   anything. 
 * Would you mind providing some insight into what could be the issue here?
 * I’m using **JWT Authentication for WP-API** plugin.
    -  This topic was modified 2 years, 4 months ago by [alekmitch](https://wordpress.org/support/users/alekmitch/).

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

 *  Thread Starter [alekmitch](https://wordpress.org/support/users/alekmitch/)
 * (@alekmitch)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/post-request-failure-api-issues/#post-17346435)
 * Never mind, I created a custom plugin just for this issue.
    -  This reply was modified 2 years, 4 months ago by [alekmitch](https://wordpress.org/support/users/alekmitch/).
 *  Plugin Author [Melapress](https://wordpress.org/support/users/melapress/)
 * (@melapress)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/post-request-failure-api-issues/#post-17347451)
 * Hello Alek,
 * Glad to read the issue was solved. By the way, if you like the plugin, please
   do not forget to spare a minute to [**review the plugin and the support we provide**](https://wordpress.org/support/plugin/wp-2fa/reviews/).
   These reviews are really helpful.
 * Just in case other people are looking for a solution, one can add this filter
   and it will do the trick:
 *     ```wp-block-code
       add_filter( 'two_factor_user_api_login_enable', function( $enable ) {
           // Allow API login when using an application password even with 2fa enabled.
           if ( did_action( 'application_password_did_authenticate' ) ) {
               return true;
           }
   
           return $enable;
       } );
       ```
   
 * Thank you and have a great day.

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

The topic ‘POST request failure (API issues)’ is closed to new replies.

 * ![](https://ps.w.org/wp-2fa/assets/icon-256x256.png?rev=2961533)
 * [WP 2FA - Two-factor authentication for WordPress](https://wordpress.org/plugins/wp-2fa/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-2fa/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-2fa/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-2fa/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-2fa/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-2fa/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Melapress](https://wordpress.org/support/users/melapress/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/post-request-failure-api-issues/#post-17347451)
 * Status: resolved