includeUnpublished not working for drafts

Please fill out as many of the following questions as possible so we can help you promptly! If you don’t know how to answer or it does not apply, feel free to remove it or leave it blank.

Builder content link

Builder public api key

What are you trying to accomplish
using builder.get, we’re trying to get a draft piece of content. This comes back as undefined. When we publish the piece, we get the content. We tried using the includeUnpublished: true property here. But it had no effect.

Code stack you are integrating Builder with
We’re using NEXT.js 14. We’re using the app router with the following route:

export default async function Page({ params }) {
  const urlPath = "/blog/" + (params?.slug?.join("/") || "");
  const content = await builder
    .get("article", {
      includeRefs: true,
      enrich: true,
      includeUnpublished: true,
      userAttributes: {

  console.log(content); // This is undefined.
  return ...

Hi @CourseStudio,

At the content API level includeUnpublished is working, Can please confirm which SDK version you are using?