Title: Unauthorized access for creating posts
Last modified: September 3, 2020

---

# Unauthorized access for creating posts

 *  Resolved [charlesbinder](https://wordpress.org/support/users/charlesbinder/)
 * (@charlesbinder)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/unauthorized-access-for-creating-posts/)
 * Every other JWT plugin token works for creating posts, but your token gives 401
   error,
    BUT only your plugin has renew and expire token. Could you please let
   me know how to fix the creating post part? your jwt doesn’t work.
 *     ```
       {
         "code": "rest_cannot_create",
         "message": "Sorry, you are not allowed to create posts as this user.",
         "data": {
           "status": 401
         }
       }
       ```
   
    -  This topic was modified 5 years, 9 months ago by [charlesbinder](https://wordpress.org/support/users/charlesbinder/).

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

 *  Thread Starter [charlesbinder](https://wordpress.org/support/users/charlesbinder/)
 * (@charlesbinder)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/unauthorized-access-for-creating-posts/#post-13356196)
 * When I set to “code”
 * I get the same error
 *     ```
       {
         "code": "rest_cannot_create",
         "message": "Sorry, you are not allowed to create posts as this user.",
         "data": {
           "status": 401
         }
       }
       ```
   
    -  This reply was modified 5 years, 9 months ago by [charlesbinder](https://wordpress.org/support/users/charlesbinder/).
    -  This reply was modified 5 years, 9 months ago by [charlesbinder](https://wordpress.org/support/users/charlesbinder/).
 *  Thread Starter [charlesbinder](https://wordpress.org/support/users/charlesbinder/)
 * (@charlesbinder)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/unauthorized-access-for-creating-posts/#post-13364893)
 * HELP dude
 *  Plugin Author [Nicu Micle](https://wordpress.org/support/users/nicu_m/)
 * (@nicu_m)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/unauthorized-access-for-creating-posts/#post-13372497)
 * Hello [@charlesbinder](https://wordpress.org/support/users/charlesbinder/),
 * Please go to Plugin Settings -> General and make sure that the `beta` feature`
   All WordPress endpoints checks for JWT authentication` is checked.
 * After this feature is checked, just send the JWT to the request, and you should
   be able to make calls as an authenticated user.
 * Best regards,
    Nicu.

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

The topic ‘Unauthorized access for creating posts’ is closed to new replies.

 * ![](https://ps.w.org/simple-jwt-login/assets/icon-256x256.png?rev=2106097)
 * [Simple JWT Login – Allows you to use JWT on REST endpoints.](https://wordpress.org/plugins/simple-jwt-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-jwt-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-jwt-login/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-jwt-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-jwt-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-jwt-login/reviews/)

## Tags

 * [jwt](https://wordpress.org/support/topic-tag/jwt/)
 * [post](https://wordpress.org/support/topic-tag/post/)

 * 3 replies
 * 2 participants
 * Last reply from: [Nicu Micle](https://wordpress.org/support/users/nicu_m/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/unauthorized-access-for-creating-posts/#post-13372497)
 * Status: resolved