Skip to main content
GET
Error

Authorizations

Authorization
string
header
required

Shopify App Bridge session token of the embedded Depict: Search & Merchandising app. The shop in the token determines the merchant; merchant_id parameters must belong to that shop.

Path Parameters

surface_name
string
required

The surface's URL-safe name.

Pattern: ^[a-z0-9_-]+$

Query Parameters

merchant_id
string
required

Lite merchant id, e.g. shopify-<shop id>.

Response

The saved surface.

A saved surface. pin_mode, looks, custom_rules, only_show_pinned and avoid_surfaces are ops-only serving directives, as are a step's seed and the recently_viewed kind: read-only here, an upsert keeps the directives.

id
string
required

Stable uuid; kept across upserts. Pins, metrics and compose address the surface by it.

name
string
required

URL-safe ([a-z0-9_-]+); also the storefront metaobject handle the theme block references.

Pattern: ^[a-z0-9_-]+$
context
enum<string>
required

Where the surface renders: product (a product page, anchored on that product), category (a collection page, anchored on the collection) or any (unanchored). Per-product recommenders need product.

Available options:
product,
category,
any
steps
object[]
required

Recommenders in priority order: each fills the slots the ones before it left empty.

filters
object[]
required

Applied to every step's candidates.

Median-relative: 0.5 = half the anchor's (or catalogue's) median price.

limit
integer
required

Slots the surface renders.

excluded_product_ids
string[]
required

Products never recommended on this surface.

pin_mode
enum<string>
required
Available options:
insert,
override
looks
enum<string>
required
Available options:
none,
first,
only
custom_rules
any[]
required
only_show_pinned
boolean
required
avoid_surfaces
string[]
required