Title: RestApi get all posts with authentication
Last modified: August 19, 2020

---

# RestApi get all posts with authentication

 *  [patriot1232](https://wordpress.org/support/users/patriot1232/)
 * (@patriot1232)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/restapi-call/)
 * Hi, I am using Ultimate member to restrict access to my post by user logged in
   and by user role. I also have a mobile react native app that I need to get all
   posts from my site using REST API ( if user is logged in ).
    My question is: 
   how can I access these restricted posts from REST API if user authenticated himself,
   I couldn’t find a way to do it. Currently, it only shows unrestricted posts
    -  This topic was modified 5 years, 9 months ago by [patriot1232](https://wordpress.org/support/users/patriot1232/).
    -  This topic was modified 5 years, 9 months ago by [patriot1232](https://wordpress.org/support/users/patriot1232/).

The topic ‘RestApi get all posts with authentication’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [patriot1232](https://wordpress.org/support/users/patriot1232/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/restapi-call/)
 * Status: not resolved