Title: API Formidable Forms
Last modified: December 6, 2018

---

# API Formidable Forms

 *  Resolved [mbillips](https://wordpress.org/support/users/mbillips/)
 * (@mbillips)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-formidable-forms/)
 * The API for formidable forms does not seem to work. I am calling it to add entries
   to a form. I have exhausted all the trouble shooting options from formidable.
   It occurred to me that I was using the login plugin that might be causing the
   problem.
    I am getting the following error { “code”: “rest_unauthorized”, “message”:“
   Only authenticated users can access the REST API.”, “data”: { “status”: 401 }}
 * Is there a setting that I should be aware of that could be limiting the access?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fapi-formidable-forms%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Kevin Vess](https://wordpress.org/support/users/kevinvess/)
 * (@kevinvess)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-formidable-forms/#post-10955852)
 * Hi– thanks for using Force Login!
 * Force Login restricts access to the REST API for authorized users only.
 * Try one of the following code snippets to allow the WP REST API to be publicly
   accessible again:
 *     ```
       add_filter( 'rest_authentication_errors', '__return_true' );
       ```
   
 * Or
 *     ```
       remove_filter( 'rest_authentication_errors', 'v_forcelogin_rest_access', 99 );
       ```
   
 *  Thread Starter [mbillips](https://wordpress.org/support/users/mbillips/)
 * (@mbillips)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-formidable-forms/#post-10956072)
 * Thank you for the quick response.
    Sorry, but where should this code be added?
   Also, what might be the difference in the two options?
 *  Thread Starter [mbillips](https://wordpress.org/support/users/mbillips/)
 * (@mbillips)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-formidable-forms/#post-10956099)
 * Oops just re-read your note . snippets… i got it thanks
 *  Thread Starter [mbillips](https://wordpress.org/support/users/mbillips/)
 * (@mbillips)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-formidable-forms/#post-10956204)
 * Tried both methods … getting a different error
    { “code”: “rest_forbidden_context”,“
   message”: “Sorry, you are not allowed to create entries”, “data”: { “status”:
   403 } }
 *  Plugin Author [Kevin Vess](https://wordpress.org/support/users/kevinvess/)
 * (@kevinvess)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-formidable-forms/#post-10960734)
 * Hi–
 * > where should this code be added?
 * You would add the code to your theme or child theme’s functions.php file.
 * > what might be the difference in the two options?
 * The first example sets the REST authentication to always be true, or authenticated.
   Where as the second example removes the Force Login filter `v_forcelogin_rest_access`
   which is what limits the REST API to only be accessible by logged-in users.
 * > Tried both methods … getting a different error
 * Both methods successfully unlocked your REST API with Force Login. This new error
   you’re getting is not caused by or related to Force Login.
 * > The API for formidable forms does not seem to work. I am calling it to add 
   > entries to a form.
 * This is now true again– that new error says, “Sorry, you are not allowed to create
   entries.” I would contact formidable forms about this new error.
 * Good luck!

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

The topic ‘API Formidable Forms’ is closed to new replies.

 * ![](https://ps.w.org/wp-force-login/assets/icon.svg?rev=1904031)
 * [Force Login](https://wordpress.org/plugins/wp-force-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-force-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-force-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-force-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-force-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-force-login/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Kevin Vess](https://wordpress.org/support/users/kevinvess/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/api-formidable-forms/#post-10960734)
 * Status: resolved