Title: &#8220;401: Invalid HTTP Method&#8221; error on Register API call
Last modified: October 5, 2017

---

# “401: Invalid HTTP Method” error on Register API call

 *  Resolved [kumarg2161](https://wordpress.org/support/users/kumarg2161/)
 * (@kumarg2161)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/401-invalid-http-method-error-on-register-api-call/)
 * Getting the following error – **“401: Invalid HTTP Method”** on calling the Register
   API.
 * I am passing the FCM Instance Id for the parameter **“token”** and Android as
   the value for the parameter **“os”**, as mentioned in the documentation.
 * Could you please point out as to what is going wrong and why the API call is 
   failing?
 * [P.S. The server is _**nginx**_]
    -  This topic was modified 8 years, 8 months ago by [kumarg2161](https://wordpress.org/support/users/kumarg2161/).

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

 *  Plugin Author [Delite Studio](https://wordpress.org/support/users/delitestudio/)
 * (@delitestudio)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/401-invalid-http-method-error-on-register-api-call/#post-9559942)
 * Hello,
 * please read our [FAQs](https://www.delitestudio.com/wordpress/push-notifications-for-wordpress/faqs/):
 * > **When I call an API the server returns 401 Invalid HTTP method. What should
   > I do?**
   > As outlined in the documentation some APIs must be called using the POST HTTP
   > method (e.g. the Register API) and other using the GET HTTP method (e.g. the
   > Posts API list). More info here.
   >  If you are sure you have used the correct
   > HTTP method be sure to check the settings of your web server. In particular,
   > some users have reported that nginx has different URL mapping rules than Apache(
   > see above).
 *  Thread Starter [kumarg2161](https://wordpress.org/support/users/kumarg2161/)
 * (@kumarg2161)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/401-invalid-http-method-error-on-register-api-call/#post-9561104)
 * Hi,
 * Could you please outline as to what configurations/settings needs to be added
   to the server. Also, are there any other possible reasons for this issue, because
   i confirmed with the team who manages the web server and they have assured that
   the configuration listed in the FAQ section (related to the nginx server configuration)
   is already present.
 * Thanks.
 *  Thread Starter [kumarg2161](https://wordpress.org/support/users/kumarg2161/)
 * (@kumarg2161)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/401-invalid-http-method-error-on-register-api-call/#post-9561212)
 * Thanks, its working now. They had not added the config earlier.

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

The topic ‘“401: Invalid HTTP Method” error on Register API call’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/push-notifications-for-wp_373b48.
   svg)
 * [Push Notifications for WordPress (Lite)](https://wordpress.org/plugins/push-notifications-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/push-notifications-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/push-notifications-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/push-notifications-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/push-notifications-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/push-notifications-for-wp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [kumarg2161](https://wordpress.org/support/users/kumarg2161/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/401-invalid-http-method-error-on-register-api-call/#post-9561212)
 * Status: resolved