Title: Authentication For API Use
Last modified: August 30, 2016

---

# Authentication For API Use

 *  [taruntrehan](https://wordpress.org/support/users/taruntrehan/)
 * (@taruntrehan)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/authentication-for-api-use/)
 * Hi,
 * Can you please guide me regarding setting up an authentication for leveraging
   the API exposed by this plugin.
    I do not want that the api should be an open
   one and only authenticated/authorized clients should be able to leverage it. 
   Let me know if more information is required from my end.
 * [https://wordpress.org/plugins/json-api/](https://wordpress.org/plugins/json-api/)

Viewing 1 replies (of 1 total)

 *  [monkeypunch3](https://wordpress.org/support/users/monkeypunch3/)
 * (@monkeypunch3)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/authentication-for-api-use/#post-6231198)
 * There are already some actions that cannot be performed without being logged 
   into a valid user account. For example, you cannot edit or delete posts if you
   are not an authenticated user. But I think you can still get public WordPress
   content without logging in. There may be a way in WordPress to mark a post only
   available to logged in users. That should prevent the JSON API from returning
   that data. If not then it is a bug. Or if WordPress does not support that feature
   then you may need to add what you need to the core code base.
 * Take a look at the core code base and this project, [https://github.com/monkeypunch3/JSON-API-Plus](https://github.com/monkeypunch3/JSON-API-Plus).
   It will give you some ideas to adding your own authentication to different API
   calls. If you make any improvements please revert back.

Viewing 1 replies (of 1 total)

The topic ‘Authentication For API Use’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-api.svg)
 * [JSON API](https://wordpress.org/plugins/json-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api/reviews/)

## Tags

 * [authentication](https://wordpress.org/support/topic-tag/authentication/)
 * [OAuth](https://wordpress.org/support/topic-tag/oauth/)

 * 1 reply
 * 2 participants
 * Last reply from: [monkeypunch3](https://wordpress.org/support/users/monkeypunch3/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/authentication-for-api-use/#post-6231198)
 * Status: not resolved