REST API Reference
Sessions, Shades, and Analytics — the three core resource groups of the LumeCore REST API.
REST API Reference
Base URL: https://api.lumeglint.com/v1
Authentication: All requests require Authorization: Bearer lmg_live_YOUR_KEY header.
Content-Type: application/json for all request and response bodies.
Sessions
A session represents a single shopper's try-on interaction on a product page.
POST /sessions
Create a new try-on session for a product page. Returns a session token used by the JS SDK.
GET /sessions/{id}
Retrieve a session with its full shade interaction history.
Shades
Shades are the product color entries in a catalog. Each shade has a HEX value, finish type, and optional metadata.
GET /shades?catalog_id={id}
List all shades in a catalog.
POST /shades
Create a shade or batch-import shades (up to 500 per request).
Analytics
GET /analytics/sessions
Returns aggregate try-on stats. Query params: start_date, end_date, product_id (optional).
Error codes
401— Invalid or missing API key404— Resource not found (catalog, session, shade)429— Rate limit exceeded (1,000 req/min)402— Session quota exceeded for your plan