Architecture Overview
Sticker’s embedded integration follows a simple but secure architecture that keeps your users authenticated across both platforms while providing a seamless procurement experience.Integration Components
Backend Integration
Two API endpoints to call from your backend server
Frontend Embedding
iframe component to display Sticker in your UI
Organization Management
Automatic provisioning of orgs, users, and billing
Session Authentication
Secure, time-limited tokens for each user session
Two API Endpoints, That’s It
The entire integration requires just two API calls:1. Organization Setup (One-Time)
Called when a customer enables procurement in your platform.- Organization with Stripe customer for billing
- User profile linked to Supabase Auth
- Shipping locations for order delivery
2. Partner Handshake (Per-Session)
Called every time a user opens the supplies module.- Session token (5 min, single-use)
- Complete iframe embed URL
Integration Flow
One-Time Setup Flow
This happens once when a customer enables procurement:Per-Session Authentication Flow
This happens every time a user opens supplies:Data Models
What You Send
What You Receive
Security Model
API Key Authentication
API Key Authentication
All API requests require your Partner API Key. Never expose it in client-side code.
Session Tokens
Session Tokens
- 5 minute expiry - Must be used quickly
- Single-use - Invalidated after first use
- User-bound - Tied to specific profile
- Partner-bound - Only works with your iframe URL
iframe Sandboxing
iframe Sandboxing
The iframe runs with restricted permissions:
What’s Included Out of the Box
When you embed Sticker, your users get:| Feature | Description |
|---|---|
| Product Catalog | 10,000+ products across categories |
| Smart Search | Algolia-powered instant search |
| Shopping Cart | Multi-item cart with quantity management |
| Multiple Locations | Select from org’s shipping addresses |
| Payment Methods | Org-level saved payment methods |
| Coupon Support | Partner-funded discounts |
| Order History | View past orders and status |
| Favorites | Save frequently ordered items |
Environments
| Environment | API Base URL | Keys |
|---|---|---|
| Production | https://api.usesticker.com/v1 | sk_live_* |
| Staging/Sandbox | https://api.staging.usesticker.com/v1 | sk_test_* |
Use sandbox for development and testing. Sandbox data is isolated from production.
Rate Limits
| Endpoint | Rate Limit |
|---|---|
| Organization Setup | 100/minute |
| Handshake | 300/minute |

