Wondering how to get draft content from the content management API. I’ve tried passing in X-Include-Drafts: True as an extra header in the buildClient but it didn’t seem to work.
Hello @jason2 and welcome to the communtiy!
To get records on a draft state you need to, when doing a list all records or retrieve a record request List all records - Record - Content Management API you need to add the parameter version: current
to the request, and it will return draft records as well.
As an example:
const records = await client.items.list({
version: "current"
});