• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Application User don’t have access to create Post Via REST API

Application User don’t have access to create Post Via REST API

  • Unknown's avatar
    zubairkhansherwani000 · Member · Feb 12, 2025 at 3:26 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    I am calling the create POST API but it’s giving me error. Is there any issue with the versions I am using latest versions which is 6.7.2.
    This is the endpoint that I am calling. https://bright-cast.com/wp/wp-json/wp/v2/posts

    I am using REST API Logs plugin to check the logs. Here is the detail of the API.

    Request Headers:

    {
        "accept": "*/*",
        "authorization": "Basic YWRtaW46QnJpZ2h0********",
        "content_type": "application/json",
        "content_length": "39",
        "host": "bright-cast.com",
        "user_agent": "curl/8.7.1",
        "x_https": "1"
    }

    Body Content:

    {"title": "My test", "status": "draft"}

    Response Header:

    {
        "X-Powered-By": "PHP/8.1.31",
        "Content-Type": "application/json; charset=UTF-8",
        "X-Robots-Tag": "noindex",
        "Link": "<https//bright-cast.com/wp/wp-json/>; rel="https//api.w.org/"",
        "X-Content-Type-Options": "nosniff",
        "Access-Control-Expose-Headers": "X-WP-Total, X-WP-TotalPages, Link",
        "Access-Control-Allow-Headers": "Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type",
        "Allow": "GET"
    }

    Response Body:

    {
        "data": {
            "code": "rest_cannot_create",
            "message": "Sorry, you are not allowed to create posts as this user.",
            "data": {
                "status": 401
            }
        },
        "headers": {
            "Allow": "GET"
        },
        "status": 401
    }

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    mikemelendres83 · Member · Feb 12, 2025 at 4:00 pm
    • Copy link Copy link

    Hi there!

    This appears to be a permission issue. I would recommend reaching out to the Web Host for the site you mentioned and asking them to take a look.

  • The topic ‘Application User don’t have access to create Post Via REST API’ is closed to new replies.

Tags

  • .org
  • account
  • design

About this topic

  • In: Support
  • 2 participants
  • 1 reply
  • Last activity 11 months
  • Latest reply from zubairkhansherwani000

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions