API overview
Depict exposes two APIs, each with a different audience:Portal API
The REST API behind the merchant portal. Manage merchants, products,
collections and curation, and read the metrics and analytics that power the
portal dashboards: collection metrics, dead stock, pinned-vs-auto
performance, merchant-wide analytics and search insights.
Platform API
The public product-discovery API served from
api.depict.ai. Fetch search
results, query suggestions, product listings and recommendations, and send
tracking events from your storefront.Authentication
Portal API endpoints require a bearer token issued by Depict’s Auth0 tenant. Requests are authorized per merchant: the authenticated user must have access to themerchant_id in the path.
/v4/{merchant}/..., and each request
names its market. They are designed to be called directly from the browser.
Build a storefront integration
Use the Platform API athttps://api.depict.ai for storefront requests.
Build new integrations with the /v4 endpoints. Every path is
/v4/{merchant}/{endpoint}, and every endpoint that returns data, except
/context, takes a market and an optional locale. Read your markets and
locales from /context. Making requests
has the details.
Start with Build an integration with an AI agent
for a prompt you can adapt to your store.
Use Build collection pages with an AI agent
when you only want to replace category and collection pages.
Every endpoint that returns data also takes a POST with the same parameters as
a JSON body. Product cards follow the response contract.
An existing integration on the
/v3 or /v2 endpoints keeps working. Its
reference is under Legacy v2/v3, and
Upgrade from v3/v2 maps each route to /v4.
Conventions
- All endpoints accept and return JSON unless noted otherwise.
- Time ranges on metrics endpoints use Unix timestamps (
start_timestamp,end_timestamp). When omitted, most metrics endpoints default to the last 30 days compared against the previous 30 days. - Metric values that compare against a previous period return a
valuetogether with adelta_pct(relative change) ordelta_pts(percentage-point change for rates such as CTR).

