{"title":"Feeds Controller - Liquid Controller Reference","slug":"feeds-controller-reference","url":"https://support.storeconnect.com/articles/feeds-controller-reference","url_markdown":"https://support.storeconnect.com/articles/feeds-controller-reference.md","subtitle":null,"summary":"Hook requests to a store\u0026#39;s feed endpoints (/feeds/\u0026lt;path\u0026gt;) with a Liquid controller template at controllers/feeds/show, for example to restrict who can read a feed.","type":"Developer_Documentation","video_url":"","keywords":"liquid, controllers, feeds, feed endpoint, storefront, storeconnect","last_modified":"2026-11-25T21:09:53+0000","body_markdown":"## Description\n\nThe Feeds controller serves a store's [feeds](set-up-a-feed) at `/feeds/\u003cpath\u003e`. A feed is public and needs no sign-in, so a controller template is where you add a check of your own.\n\n| Property | Value |\n|----------|-------|\n| **Controller** | `FeedsController` |\n| **Liquid Template Path** | `controllers/feeds/` |\n| **Namespace** | — |\n\n## Actions\n\n| Action | HTTP Method | Route | Result |\n|--------|-------------|-------|--------|\n| `show` | GET | `/feeds/:path(.:format)` | Renders the feed in the requested format, or serves the pre-built result |\n\nStoreConnect sets the content type from the requested format. Custom response headers set from Liquid are not applied to a feed response.\n\n## Example\n\nCreate a theme template with the key `controllers/feeds/show` to require a shared key on every feed request:\n\n\n```liquid\n\n{% before %}\n  {% if current_request.params.key != \"partner-feed-2026\" %}\n    {% respond body: \"Access denied\", layout: false %}\n  {% endif %}\n{% endbefore %}\n```\n\n\nA request without the right `key` gets `Access denied` in place of the feed, wrapped to match the feed's format:\n\n- A `.csv` or `.txt` feed returns the text as plain text.\n- A `.json` feed returns `{\"html\":\"Access denied\",\"flash\":null,\"alert\":null,\"notice\":null}`.\n- An `.xml` feed returns the text inside the application layout, even with `layout: false`.\n- Any other format, such as `.jsonl`, returns the text as HTML.\n\n`{% respond %}` always sends HTTP status `200`, so a partner system has to check the body for the denial, not the status.\n\nSee [how Liquid controllers work](liquid-controllers-guide) for the phases and the tags you can use in them."}