✨Discover storytelling in the AI age with Pixar's Matthew Luhn at Sanity Connect, May 8th—register now

How to get the latest draft of content using Sanity's HTTP API

1 replies
Last updated: Jun 14, 2023
Hey all. Is there a way using the HTTP API to get the latest draft of some content? I can't seem to find any documentation on getting drafts through the HTTP API.
Jun 14, 2023, 9:11 AM
You can include a token in your request and also update your query if you want to get drafts specifically:
https://www.sanity.io/docs/http-auth
https://www.sanity.io/docs/drafts#ebfb408fa9b6
Jun 14, 2023, 12:26 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?