> For the complete documentation index, see [llms.txt](https://docs.realmacsoftware.com/elements-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmacsoftware.com/elements-docs/cms/json-rest-api.md).

# JSON REST API

- [Overview](https://docs.realmacsoftware.com/elements-docs/cms/json-rest-api/json-api.md): Use the Elements CMS JSON REST API for headless frontends, apps, and scripts.
- [Installation](https://docs.realmacsoftware.com/elements-docs/cms/json-rest-api/installation.md): Install requirements and verify the JSON REST API endpoint.
- [Authentication and API Keys](https://docs.realmacsoftware.com/elements-docs/cms/json-rest-api/authentication.md): Create API keys and authenticate JSON REST API requests.
- [Quickstart](https://docs.realmacsoftware.com/elements-docs/cms/json-rest-api/quickstart.md): Walk through the core JSON REST API workflow in a few curl commands.
- [Reference](https://docs.realmacsoftware.com/elements-docs/cms/json-rest-api/reference.md): Route index and conventions for the JSON REST API.
- [Collections](https://docs.realmacsoftware.com/elements-docs/cms/json-rest-api/reference/collections.md): List content collections configured for the site.
- [Items](https://docs.realmacsoftware.com/elements-docs/cms/json-rest-api/reference/items.md): List, read, create, update, and delete CMS content items.
- [Resources](https://docs.realmacsoftware.com/elements-docs/cms/json-rest-api/reference/resources.md): Upload, list, move, rename, and delete CMS resources.
- [Versions](https://docs.realmacsoftware.com/elements-docs/cms/json-rest-api/reference/versions.md): Read item version history and restore previous versions.
- [Settings](https://docs.realmacsoftware.com/elements-docs/cms/json-rest-api/reference/settings.md): Read and update selected Online Editor settings.
- [Search and Feeds](https://docs.realmacsoftware.com/elements-docs/cms/json-rest-api/reference/search-and-feeds.md): Search index, tags, RSS, sitemap, related items, and legacy public routes.
- [Errors](https://docs.realmacsoftware.com/elements-docs/cms/json-rest-api/errors.md): JSON REST API response envelopes, status codes, and troubleshooting.
- [Changelog](https://docs.realmacsoftware.com/elements-docs/cms/json-rest-api/changelog.md): JSON REST API versioning policy and notable changes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.realmacsoftware.com/elements-docs/cms/json-rest-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
