I found the answer, dropping it here in case someone need it.
You need to be logged in as a user that has the
edit_postscapability. With that capability, you also get access to the private query vars, includingpost_status.
Taken from this similar issue.
Related Posts:
- WP REST API only returning partial list of users
- WordPress REST API “rest_authentication_errors” doesn’t work external queries?
- WordPress API “code”:”rest_no_route” with Custom Route
- Transmit headers and footers via API from one site to another
- Yahoo Finance All Currencies quote API Documentation
- MySQL error 1449: The user specified as a definer does not exist
- WP Rest API – How to get featured image
- Get WP Navigation Menu from REST API V2
- Destination directory for file streaming does not exist or is not writable
- How to to secure WordPress file and folder permissions
- Query WP REST API v2 by multiple meta keys
- Show popular post in another php website via WP REST JSON API
- WP-API v2 Custom Endpoint Response Formatting
- WP in Docker – cannot install plugin or upgrade WP
- when FS_METHOD = ‘direct’ is chosen?
- How do I cache (core) API requests?
- Implementing Isomorphic JavaScript (React JS) in WordPress?
- Fetch All Posts (Including Those Using a Custom Post Type) With WordPress API
- Create custom permissions for user type
- Is there a way to get protected meta fields through any of the available built-in WordPress APIs? (xmlrpc, wp-json)
- WordPress REST API – Permission Callbacks
- WP API returning SQL results as strings, rather than numbers
- Can’t upload images due to permissions error
- add_menu_page permissions – what am I doing wrong?
- WordPress JSON output
- Recommended File Permissions
- Network Admin “You do not have sufficient permissions to access this page.”
- What’s the difference between the permissions “edit_published_posts” and “edit_posts”
- WordPress Rest API
- Retrieving pages with multiple tags using REST API
- Wrong permissions when uploading a file through WordPress | IIS
- ftp_nlist() and ftp_pwd() warnings
- Send data to 3rd party api with wp_remote_post on wp_login
- WP Rest API v2 filter and display latest post with specific tag
- Trying to get custom post meta through Jetpack JSON API [closed]
- WordPress Rest API: How do we validate with our custom API key?
- How do I use the WP REST API plugin and the OAuth Server plugin to allow for registration and login?
- WordPress in IIS 7.5 – “cannot create directory”
- How to loop through JSON data in wordpress WP REST API
- What permissions should i have set up for the Database User after i have WordPress set up?
- Why is group ownership with rwx permissions not enough?
- How to get featured post title & image using JSON API?
- WP API V2 returning Invalid User ID
- Unset data in custom post type WordPress API (wp-json)
- Sending POST Request from server
- How do I retrieve a list of popular plugins using the WordPress.org Plugin API?
- Editing WordPress Permissions in LAMP – Ubuntu 11.10
- WP API : date_query parameter
- How can I limit WordPress editor roles to a specific category?
- get WP-API by page id
- WordPress wp-json API – Custom Post Type returns 403
- Get more than 10 posts in a specific category with the wordpress api
- WP REST API – Retrieve content from page
- utf8 encoding in json rest api
- can i run wp as root permissions
- Authentication for a mobile app connected via wp-rest api?
- Implementing the wp json-rest api
- Prevent or Disable creating new users or changing roles of existing users to Administrator
- Safe to set permissions to 757 temporarily to update via wp-cli?
- Create post with REST API in php with file_get_contents
- Displaying Content with WP Rest API
- Increase the page size of the WordPress REST API
- Does WordPress have fine-grained view permissions?
- Options to get my custom post type metadata via the WordPress API
- WordPress debug.log is not updating
- How do I perform a “get” call to an external API, and then display the JSON results on a page in my WordPress site?
- Building custom API and using wp_get_nav_menu_items to get menu items. Only works when logged in, returns nothing when I’m not
- Passing Meta array in wp-rest api
- how to decode % in app [closed]
- How to Increase WordPress JSON API Speed?
- Keep user’s privileges on accessing contents in JSON response
- creating shortcode to pull json array
- WordPress file permissions for editing on local Ubuntu development machine
- Inserting custom post meta value using WP-REST API
- node-wpapi: how to handle authentication?
- Get all tags not just first 10 with wp api 2.0
- Mass importing json data into custom fields (postmeta)
- Post body not working with wp_remote_post()
- Most performant way of fetching remote API data?
- How can I cache WordPress Rest API Response
- How to add WP API and JS featured image attachment
- Why aren’t tags and categories added in post request to WP Rest API
- Hook before posting via JSON REST API
- Troubleshoot “You do not have sufficient permissions to access this page.”
- plugin install wants ftp (chown and 755 not enough)
- can’t change footer
- permissions access error
- woocommerce registration form with klaviyo(don’t work with current user)
- WP_REMOTE_POST Requests are being blocked by API provider [closed]
- CMB2 Repeatable Group & JSON API
- Permissions Issue with WordPress
- What user/group does WordPress belong to in terms of file permissions?
- WordPress REST API not returning all posts
- WordPress JSON API remove posts from a specific category
- Enable plugin installs without FTP with user from same group as Nginx/PHP-fpm
- Iframe a WordPress template
- How to configure apache to create files with correct group owner [closed]
- Moved my WordPress site and now it can’t read the theme
- WordPress folder ownership issues
- Applying roles to an admin sub-menu (eg Appearance -> Menus)