Skip to content

Get the installed sandboxed custom template for a public shop page

GET
/storefront/sites/{host}/code-template/{page}
curl --request GET \
--url https://example.com/storefront/sites/example/code-template/home

Inert JSON only, never an HTML response or the source archive. Resolved from this host’s current approved live revision, or its own valid preview token. No arbitrary key or revision parameter. Nothing for closed, off, unknown, unpaid or unverified shops.

host
required
string
page
required
string
Allowed values: home products category page
preview
string

Approved sandbox document

Media typeapplication/json
object
html
required
string
<= 8388608 characters
css
required
string
<= 2097152 characters
javascript
required
string
<= 262144 characters

Example generated

{
"html": "example",
"css": "example",
"javascript": "example"
}

Not changed

No installed template page

Too many requests