REST API for collections

Hello Netlify Team,

this might be a dumb question, but I did not find it currently in the docs at a first watch.
Is it possible to access my collection objects per REST API (headless) by an external web app.
For example, I need all published posts from the demo site: Netlify CMS Development Test
I played a little bit with the urls but did not find an endpoint to fetch the posts (example) as json.
Is this possible, how will this endpoint look like?

Many thanks and kind regards,

1 Like

Hi @escv, Netlify CMS is a headless CMS which means it runs completely in the browser, so it can’t expose a REST API.
The content is usually saved in a git repo (for example a GitHub repo), so you can use the relevant git provider API to retrieve content.

As for the content on the demo site is generated and stored in the browser memory. You can access it via window.repoFiles

1 Like