WordPress REST API Authentication


WordPress REST API Authentication plugin secures the unauthorized access to your WordPress site using different authentication credentials verification. This plugin doesn’t requires much configuration.

There are multiple ways to secure a REST APIs e.g. basic auth, OAuth, JWT etc. but one thing is sure that RESTful APIs should be stateless – so request authentication/authorization should not depend on cookies or sessions. Instead, each API request should come with some sort authentication credentials which must be validated on the server for each and every request.

REST API Authentication Methods:
* Basic Authentication
1. Using Username & Password
2. Using Client-ID & Client-Secret
* API Key Authentication (Authentication with Randomly Generated Key )
* JWT Authentication / JSON Web Tokens Authentication
* OAuth 2.0 Authentication
1. Client Credentials
2. Password grant
* API Authentication for Third Party Provider( using Introspection Endpoint / User Info Endpoint )

* Supports Basic Auth (Basic Authentication), API Key, OAuth 2.0, JWT Authentication methods
* Validates Signature for json web tokens (jwt)
* Allows to access all type of posts/pages based on User’s WordPress Role & Capability
* Allows to Authenticate your WordPress site / REST API with token (access token / jwt token) provided by your OAuth Provider ( Third Party Provider )
* Supports WooCommerce API Authentication


This plugin does not store any user data.


  • List of API Authentication Methods
  • List of Protected WP REST APIs
  • Advanced Settings
  • Custom API Integration


This section describes how to install the WordPress REST API Authentication and get it working.

From your WordPress dashboard

  1. Visit Plugins > Add New
  2. Search for REST API Authentication. Find and Install api authentication plugin by miniOrange
  3. Activate the plugin

From WordPress.org

  1. Download WordPress REST API Authentication.
  2. Unzip and upload the wp-rest-api-authentication directory to your /wp-content/plugins/ directory.
  3. Activate WordPress REST API Authentication from your Plugins page.


What is the use of API Authentication

The REST API authentication prevents the unauthorized access to your WordPress API’s.
It reduces potential attack factors

How does this plugin work?

You just have to select your Authentication Method.
Based on the method you have selected you will get the authorization code/token after sending the token request.
Access your REST API with code/token you received in previous step.

How to access draft posts?

You can access draft posts using Basic Auth, OAuth 2.0(using Username:Password) methods. Pages/posts are need to access with the status. Default status used in request is ‘Publish’ and any user can access Published post.
To access the pages/posts stored in draft, you need to append the ?status=draft to the page/post request.
For Example:
You need to use below URL format while sending request to access different type of posts
1. Access draft posts only
2. Access all type of posts
You just have to change the status(draft, pending, any, publish) as per your requirement. You do not have to pass status parameter to access Published posts.

I am not able to access some APIs?

The below list of WP REST APIs are protected and allowed for authorized access in free plugin:
1. /wp/v2/posts
2. /wp/v2/comments
3. /wp/v2/media
We have allowed authorized access to other WP REST APIs in premium versions.


ޖެނުއަރީ 14, 2021
We use WordPress as a membership site and identity provider for access to a Virtual Reality experience. WordPress REST API Authentication plug-in makes it possible for us to authenticate member users and give access to other apps. Most users in our membership don't remember their WordPress username, so we requested a modification from MiniOrange to add EMAIL ADDRESS to identify the user (instead of only WordPress UserName). MiniOrange support were quick to respond and offer a modification at reasonable cost. Allowing users to authenticate with their EMAIL ADDRESS or WordPress UserName is a much better experience. We purchased the one year of warranty support which was also reasonable. Everyone is happy. Thank you MiniOrange!
ޖެނުއަރީ 3, 2021
I was using this plugin since it was released and there was no such thing as this. Now, you are charging a hefty 149$ to 349$ as a one-time payment? This is serious looting on a bright day. All you want is to earn money? You are killing this plugin, man. This is now what I will call a failed plugin. 100 auth are free? I don't care about your 100 free auth. Rather than, I will hire some good dev and ask him to create the clone of this plugin that will not charge me this hefty amount or give free usage. Old days were good.
ޑިސެމްބަރ 15, 2020
There is no other plug-in on the market that did this with the level of ratings and tech-support. I had to contact the team several times and they were highly responsive and helpful. Highly recommended.
ޑިސެމްބަރ 10, 2020
Works as advertised, but what they don't mention is that you're limited to 100 authentications/month in the free version - this includes failed authentications as well, so you'll run out very quickly. 👎
ނޮވެމްބަރ 10, 2020
Purchased this plugin as an easy way to add auth to a simple WP REST API we have in a mobile app – super easy, had a few server side issues with initial set-up but they helped us sort and were very responsive. Would recommend this plugin for any WP REST API that needs basic auth.
Read all 25 reviews

Contributors & Developers

“WordPress REST API Authentication” is open source software. The following people have contributed to this plugin.




  • UI updates
  • Minor fixes


  • WordPress 5.6 compatibility


  • Allow all REST APIs to authenticate
  • Added postman samples
  • Minor Bugfix


  • Minor Bugfix


  • Added compatibility for WP 5.5


  • Bundle plan release
  • Minor Bugfix


  • Added compatibility for WP 5.4


  • Minor Bugfix


  • Minor Bugfix


  • Minor Bugfix


  • Minor Fixes


  • Added UI Changes
  • Updated plugin licensing
  • Added New features
  • Added compatibility for WP 5.3 & PHP7.4
  • Minor UI & feature fixes


  • Added fixes for undefined getallheaders()


  • Added UI changes for Signing Algorithms and Role Based Access
  • Added Signature Validation
  • Minor fixes


  • Added JWT Authentication
  • Fixed role based access to REST APIs
  • Fixed common class conflicts


  • Fixes to Create, Posts, Update Publish Posts


  • Updated UI and features
  • Added compatibility for WordPress version 5.2.2
  • Added support for accessing draft posts as per User’s WordPress Role Capability
  • Allowed Logged In Users to access posts through /wp-admin Dashboard


  • Added Bug fixes


  • Updated UI and features
  • Added compatibility for WordPress version 5.2.2