Fetch and preview unpublished documents from the C...
# help-with-umbraco
e
Hi, I'm using Umbraco 13 headless (Next.js 14) and I’m running into an issue when trying to preview a saved document before it is published, or rather an issue with requesting it in order to preview it. Requesting unpublished content changes on already published documents works well, but when requesting a document that is saved but unpublished (with the headers
"Preview"
set to
"true"
and the
"Api-Key"
) based on the slug or the id just returns 404. I expected the
”Preview”
+
”Api-Key”
headers to allow access to the saved content regardless of whether the document is published or not. Anyone know if there is any other alterations to the request needed to access saved-only content? Or any other input that might me helpful. Thanks!
49 Views