List CMS pages
Changed onReturns CMS pages, each with its current-locale translation embedded. Pass url_key to fetch the page the storefront shows at /page/{url_key}: it must be assigned to the current channel, and a CMS URL rewrite for an old key is followed. The result is then a list of one page, or empty. Public endpoint.
Request
- Base URLhttp://localhost:8000/api/shop
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
URL key (slug) of the page, as in the storefront URL.
The collection page number
The number of items per page
Headers
Storefront API Key for authentication. Required for all shop/storefront API requests.
Locale code for localized data (e.g. "en", "fr", "ar"). Defaults to channel's default locale.
Channel code (e.g. "default"). Defaults to the current channel.
Currency code (e.g. "USD", "EUR", "INR"). Defaults to channel's base currency.
Response
List of CMS pages.
Changes
- info
added the new optional
queryrequest parameterurl_key
- info