Skip to content

Work with content via the API

Work with your site’s content as data over the JSON:API: fetching directly is for content that is not the current page (a listing, a detail query, a feed for a channel with no pages to compose). That holds whether the fetch runs in a headless app, in a Canvas code component, or in a script. To build a frontend, Canvas Headless is the recommended path, starting at its quickstart; the two compose, with Canvas rendering the pages and direct fetches carrying the data.

The quickstart runs your first query from the terminal, and First fetch renders content in an app. From there: precise queries, both fetch contexts, languages, writes, and webhooks.

A machine-readable index of Acquia's developer documentation for AI agents is at /llms.txt (https://dev.acquia.com/llms.txt on the production site).

Was this page helpful?