Best-converting products (windowed)
The store’s best-converting products over a time window, ranked by view→purchase ratio (units purchased ÷ product views). Surfaces high-intent “customer favorites” — products that convert, not merely products that get traffic. Products with fewer than 5 views in the window are excluded so a tiny sample can’t top the list.
Minimum results. Because the five-view threshold can leave this list very short on a new or
low-traffic store, the response is topped up to at least 8 products (capped at limit, and at
the store’s active product count) by backfilling — in order — from trending, engagement signals
(views/adds-to-cart), featured products, and newest arrivals, de-duplicated against the list.
Publishable-key accessible; available on every plan. Returns product ids + a score (the
view→purchase ratio; a score above 1 means more units sold than distinct views recorded).
Authorizations
API Key Authentication
Use your API key in the Authorization header:
Key Types:
Secret Keys (Server-Side Only):
- Format:
tybrite_sk_live_*(production) ortybrite_sk_test_*(sandbox) - Full read/write access to all endpoints
- ⚠️ NEVER expose in client-side code or public repositories
- Required for: write operations, authentication, payment verification, AI recommendations
Publishable Keys (Client-Safe):
- Format:
tybrite_pk_live_*(production) ortybrite_pk_test_*(sandbox) - Read-only access (GET requests only, plus POST semantic search)
- ✅ Safe for client-side JavaScript, mobile apps, and public code
- Allowed for: browsing products, search, CMS content, pricing queries
Endpoint-Specific Requirements:
- Authentication endpoints (
/v1/auth/*): Secret key required - Payment verification (
POST /v1/payments/verify): Secret key required - AI Recommendations (
POST /v1/recommendations): Secret key required - Semantic Search (
POST /v1/search): Both key types allowed (read-only operation) - All write operations: Secret key required
- All read operations: Both key types allowed
Using a publishable key for restricted operations returns 403 Forbidden.
Query Parameters
The ranking window in hours. One of 168, 720. Defaults to 168.
168, 720 1 <= x <= 50Response
Ranked best-converting products for the window.

