Fast, secure, and beautiful endpoints
Manage products, variants, inventory, orders, customers and beautifully crafted metadata for gemstones — all via a simple REST interface.
Create products with images, SKU, metal, gemstone, and rich descriptions.
Stock management, single-stock and multi-variant support, plus order lifecycle hooks.
API Key / Bearer token auth, CORS-safe, rate-limited endpoints.
Authenticate with an API Key (recommended) — set header Authorization: Bearer <API_KEY>. For protected admin routes use scoped tokens.
// Quick fetch example
fetch('http://localhost:2005/v1/products', {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
})
.then(r => r.json())
.then(console.log)
.catch(e => console.error(e))
// curl example (images) curl -X POST "http://localhost:2005/v1/products" \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "name=Artisan Necklace" \ -F "price=499.00" \ -F "sku=N-ART-001" \ -F "metal=14k_gold" \ -F "gemstone=emerald" \ -F "images[]=@/path/necklace-front.jpg" \ -F "images[]=@/path/necklace-back.jpg"
GET /v1/products?limit=24&page=1&metal=14k_gold&minPrice=100&maxPrice=1000
Response: { data: [...], total: 120, page:1, limit:24 }
Webhooks, bulk import, and image CDN support.
POST /v1/products/bulk — upload CSV or JSON to create many SKUs at once.
Order.created, product.updated — HMAC signatures included for verification.
Serve resized images via /images/{id}?w=800&fit=cover — integrated with signed URLs.