Get product recommendations
AI-powered product recommendations with 5 types:
- similar: Products similar to given product (embedding-based)
- also-bought: Frequently purchased together (co-purchase matrix)
- trending: Currently trending products (velocity-based)
- personalized: Based on customer preferences
- bundle: Bundle suggestions (semantic + co-purchase)
⚠️ SECRET KEY REQUIRED
This endpoint requires a secret key (tybrite_sk_*). Publishable keys will return 403 Forbidden.
Why Secret Key? AI recommendation generation uses computational resources and accesses machine learning models that should be protected from unauthorized use. This prevents abuse and ensures fair resource allocation.
Documentation Index
Fetch the complete documentation index at: https://docs.tybritelabs.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API Key Authentication
Use your API key in the Authorization header:
Authorization: Bearer tybrite_sk_live_YOUR_KEYKey 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.
Body
similar, also-bought, trending, personalized, bundle Required when type is similar, also-bought, or bundle. Must reference an existing product in the store; otherwise 404 is returned.
Optional for personalized. When omitted, the worker falls back to trending recommendations.
1 <= x <= 50
