Can I expose an collection entry in draft-mode in the api for a certain user

Just FYI, the format for this has changed. To get draft content, you now append this to your query:

?publicationState=preview

And if you want ONLY unpublished content, you can do this:

?publicationState=preview&filters[publishedAt][$null]=true

From Filtering, Locale, and Publication State for REST API - Strapi Developer Docs (v4 documentation)

4 Likes