Also another question not related with the above one. Is there a way to limit the response in the API? i mean, if i want to hide "unpublished" documents in the API response? (havent tested, is a question my colleagues made me)
The drafts only show up using authenticated requests, but you can filter them with GROQ. See this article https://www.sanity.io/docs/drafts
Yes, that's correct. Drafts don't show in the unauthenticated API by default though, only published documents.
Sanity.io is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Free to get started, and pay-as-you-go on all plans. Find out more.