Learn how we protect your information by not being accessed by attackers or how we protect you from others creating a custom storefront with your store information.Documentation Index
Fetch the complete documentation index at: https://docs.shopi.lk/llms.txt
Use this file to discover all available pages before exploring further.
How it works
Every SDK call requires a storefront API key — ashopi_pk_ prefixed key generated from the Shopi seller dashboard. The key identifies which shop’s data to serve and enforces rate limits per shop.
Key rules
Keys are per-shop, not per-developer
Keys are per-shop, not per-developer
Each key is tied to one shop. A theme developer does not own or distribute keys — the shop owner generates their own key from the seller dashboard and provides it when configuring the theme.
Keys are public-facing but scoped
Keys are public-facing but scoped
Storefront keys are designed to be used in browser environments. They can only read public shop data and write orders/reviews. They cannot access admin operations, other shops, or any internal Supabase resources.
Keys must start with shopi_pk_
Keys must start with shopi_pk_
The SDK validates the key format at construction time. Any key not starting with
shopi_pk_ throws immediately before any network call is made.Constructor options
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
apiKey | string | ✅ | — | Must start with shopi_pk_ |
timeoutMs | number | ❌ | 10000 | Request timeout in milliseconds |
baseUrl | string | ❌ | https://apicall.shopi.lk/v1 | Do not override in production |