Title: rest_cannot_create error message
Last modified: October 5, 2019

---

# rest_cannot_create error message

 *  [skiabox](https://wordpress.org/support/users/skiabox/)
 * (@skiabox)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/rest_cannot_create-error-message/)
 * Hello there.
    I created a jwt token using the menu of the plugin and then I copied
   the token to the clipboard. The problem is that when I try to create a post using
   Postman with the key : Authorization and value Bearer ‘token value here’ and 
   using the (POST endpoint-wp.localhost/wp-json/wp/v2/posts) I get the following
   response :
 *     ```
       {
           "code": "rest_cannot_create",
           "message": "Sorry, you are not allowed to create posts as this user.",
           "data": {
               "status": 401
           }
       } 
       ```
   
 * Any ideas?
    Thank you!

Viewing 1 replies (of 1 total)

 *  Plugin Author [AAM Plugin](https://wordpress.org/support/users/vasyltech/)
 * (@vasyltech)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/rest_cannot_create-error-message/#post-12004597)
 * [@skiabox](https://wordpress.org/support/users/skiabox/),
 * There are several reasons it might not work for you. Based on your message, you
   are using `Authorization` header which is already can be a problem.
 * >  Note! AAM does not use standard Authorization header as it is skipped by most
   > Apache servers. Instead of doing all these crazy hacks in the .htaccess or 
   > Apache configs, you can simply use Authentication header.
 * You can find more here
    [https://aamplugin.com/article/ultimate-guide-to-wordpress-jwt-authentication](https://aamplugin.com/article/ultimate-guide-to-wordpress-jwt-authentication)
 * Regards,
    Vasyl

Viewing 1 replies (of 1 total)

The topic ‘rest_cannot_create error message’ is closed to new replies.

 * ![](https://ps.w.org/advanced-access-manager/assets/icon-256x256.png?rev=3447421)
 * [Advanced Access Manager – Access Governance for WordPress](https://wordpress.org/plugins/advanced-access-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-access-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-access-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-access-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-access-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [AAM Plugin](https://wordpress.org/support/users/vasyltech/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/rest_cannot_create-error-message/#post-12004597)
 * Status: not resolved