List saved shop themes
GET
/storefront/themes
const url = 'https://example.com/storefront/themes';const options = { method: 'GET', headers: {cookie: '__Host-bottle.session_token=<__Host-bottle.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/storefront/themes \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>Only this business’s approved, immutable revisions. Private source files and other businesses’ data are never returned.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Saved themes, newest first
Media typeapplication/json
object
items
required
Array<object>
object
id
required
UUID v7
string format: uuid
name
required
string
description
required
string
template
required
string
source
required
string
theme
required
object
primary
string
accent
string
background
string
fontPair
Classic: Fraunces and Inter. modern: Bricolage Grotesque and Inter. friendly: Nunito throughout. editorial: Playfair Display and Source Sans 3.
string
radius
integer
design
required
object
spacing
string
container
string
headingScale
string
productCards
string
codeSummary
object
pages
required
Array<string>
files
required
integer
totalBytes
required
integer
replacesHomepage
required
boolean
createdAt
required
string format: date-time
Example
{ "items": [ { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "template": "yard", "source": "upload", "theme": { "primary": "#1F3A5F", "accent": "#E4572E", "background": "#FAF7F2", "fontPair": "classic", "radius": 12 }, "design": { "spacing": "compact", "container": "narrow", "headingScale": "compact", "productCards": "plain" }, "codeSummary": { "pages": [ "home" ] } } ]}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}The plan does not include a shop
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Without the permission this needs
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Invalid theme, or the saved-theme allowance is full
Media typeapplication/json
object
error
required
string
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}Too many requests, or theme processing is busy
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}